I'm familiar with the:
- Code: Select all
<!DOCTYPE html>
but I'd like to know what else you can do with this while still having the user-agent render the document in standards mode on a large range of browsers as is seen on: http://hsivonen.iki.fi/doctype/
For example, what happens if you use one of these below.
[1]
- Code: Select all
<!DOCTYPE html5>
[2]
- Code: Select all
<!DOCTYPE html 5>
[3]
- Code: Select all
<!DOCTYPE xhtml5>
[4]
- Code: Select all
<!DOCTYPE html foo>
[5]
- Code: Select all
<!DOCTYPE html foo/bar/baz>
I read on Anne's blog http://annevankesteren.nl/2005/07/html5-doctype [1] about Firefox going into quirksmode presumably from the 5 at the end. But what about [2] where there is a space, is this ok? And [5], would this work?
I'd be interested to know what results people have obtained through any testing with similar DOCTYPES. I'd also like to know what people think about the DOCTYPE being case sensitive, I think it should be.
Cheers Dean