Click to See Complete Forum and Search --> : xhtml strict and ol tag


jrthor2
01-31-2008, 06:57 AM
I am designing an xhtml strict site, and I am using the <ol> tag for an ordered list, but I need to set the start attribute, which doesn't validate. How can I tell the <ol> tag where to start?

Jeff Mott
01-31-2008, 07:48 AM
Typically you'd use the CSS properties content, counter-reset, and counter-increment. But IE doesn't support them, so that's the end of that.

You should only ever accept non-validating code if you have a very good and specific reason to do so, and this is one such case. So go ahead and use the HTML equivalent.

Robert Wellock
01-31-2008, 12:35 PM
There is absolutely no benefit of Strict over Transitional if it is not being served with the correct MIME 'application/xhtml+xml' and in either case it's just a minor attribute issue.

Jeff Mott
01-31-2008, 12:45 PM
Strict is beneficial over transitional, however, when validating your code, because the validator will alert you when you've mistakenly used deprecated markup.