Ya know that DOCTYPE declaration you put at the top of all your webpages? It usually looks something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">. Well recently I had to take a close look at the XHTML 1.0 specs so I started with the actual dtd listed in my DOCTYPE declaration. There I discovered a whole bunch of HTML tags that I never knew were there.
One problem I have come across on several occasions is creating a fixed-width rounded rectangle that, in addition to its rounded-ness, has a non-repeating backgrund image. Here is an example of what I'm talking about:
So lets start with the rounded rectangle part. This is the typical html that I might use:
So here is an interesting question I came across while working on one of my sites… The site in question has an XHTML1.0 Strict doctype and I have been very careful to make sure all of the markup validates. Today I received an email with some HTML provided by a third-party content provider that was definitly not valid XHTML (in fact it wasnt really valid anything, but that's not the point) for me to insert into one of the pages. Now what am I supposed to do?