HTML 4.01 DOCTYPE!!!
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
HTML 4.01 DOCTYPE!!!
I'm still learning HTML and was curious to know how you would type out <!DOCTYPE for HTML/HTML5? thanks cms consulting
Re: HTML 4.01 DOCTYPE!!!
In XHTML5 the DOCTYPE must be a case-sensitive match of the string "<!DOCTYPE html>". This is because in XHTML syntax all HTML PUBLIC are required to be in lower case, including the root element referenced inside the HTML5 DOCTYPE. As well, XHTML only accepts the upper case inside the DOCTYPE string. These rules are not defined by the HTML5 specification itself but by XML and the syntax rules for XHTML DTDs. For the XHTML5 syntax, then DTDs are permitted as well.
The DOCTYPE is optional in XHTML5 and may simply be omitted.[5] However, if the markup is to be processed as both XML and HTML, a DOCTYPE should be used.[6]
http://en.wikipedia.org/wiki/Document_type_declaration
The DOCTYPE is optional in XHTML5 and may simply be omitted.[5] However, if the markup is to be processed as both XML and HTML, a DOCTYPE should be used.[6]
http://en.wikipedia.org/wiki/Document_type_declaration
Re: HTML 4.01 DOCTYPE!!!
To further complicate things we also have this comparison:
http://dev.w3.org/html5/html-author/#ht ... comparison
http://dev.w3.org/html5/html-author/#ht ... comparison