HTML tags you never knew about

May 28th, 2009

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">. We 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.

Rounded rectangles with a non-repeating background

May 25th, 2009

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:

a rounded rectangle with a non repeating bg

So lets start with the rounded rectangle part.  This is the typical html that I might use:

3rd Party HTML

May 14th, 2009

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?