Support Forums

HTML 4.01 DOCTYPE!!!

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.
User avatar
jessepit
Posts: 3
Joined: Sat Oct 12, 2013 7:47 am

HTML 4.01 DOCTYPE!!!

Postby jessepit » Thu Oct 17, 2013 10:50 pm

I'm still learning HTML and was curious to know how you would type out <!DOCTYPE for HTML/HTML5? thanks cms consulting
User avatar
jvierra
Posts: 9702
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: HTML 4.01 DOCTYPE!!!

Postby jvierra » Thu Oct 17, 2013 10:59 pm

User avatar
jvierra
Posts: 9702
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: HTML 4.01 DOCTYPE!!!

Postby jvierra » Thu Oct 17, 2013 11:06 pm

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
User avatar
jvierra
Posts: 9702
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: HTML 4.01 DOCTYPE!!!

Postby jvierra » Thu Oct 17, 2013 11:13 pm

To further complicate things we also have this comparison:
http://dev.w3.org/html5/html-author/#ht ... comparison

Return to “Other Scripting Languages”

Who is online

Users browsing this forum: No registered users and 3 guests