HTML 4.01 DOCTYPE!!!

Batch, ASP, JScript, Kixtart, etc.
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.
This topic is 11 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
jessepit
Posts: 3
Last visit: Thu Oct 17, 2013 10:56 pm

HTML 4.01 DOCTYPE!!!

Post by jessepit »

I'm still learning HTML and was curious to know how you would type out <!DOCTYPE for HTML/HTML5? thanks cms consulting
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: HTML 4.01 DOCTYPE!!!

Post by jvierra »

jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: HTML 4.01 DOCTYPE!!!

Post by jvierra »

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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: HTML 4.01 DOCTYPE!!!

Post by jvierra »

To further complicate things we also have this comparison:
http://dev.w3.org/html5/html-author/#ht ... comparison
This topic is 11 years and 2 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked