[whatwg] The version attribute for HTML5

Simon Pieters zcorpan at hotmail.com
Mon Jun 20 08:23:49 PDT 2005


Since HTML5 won't be an SGML application, the DOCTYPE could be shortened 
down to this:

|<!DOCTYPE html>

This DOCTYPE triggers standards rendering mode in current browsers. [1] To 
specify the version, we could reuse the version attribute:

|<html version="5.0">

XML documents could use the same DOCTYPE (if desired) since it is 
wellformed. [2] The html start tag would look like:

|<html xmlns="http://www.w3.org/1999/xhtml" version="5.0">

What do you think?

[1] http://zcorpan.1go.dk/test/version-attr.html
[2] http://zcorpan.1go.dk/test/version-attr.xhtml

Simon Pieters

More information about the whatwg mailing list