HTML DOCTYPE Document Type example description
HTML4.01 document Transition definition types, documents defined by this type can use tags and elements in HTML to include tags that are not recommended by the user (e.g., font, b, etc.), and cannot use frames
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
HTML4.01 documents are strictly defined types, documents of this type can use tags and elements in HTML, cannot contain labels that are not recommended by the users (e.g., font, B, etc.) and cannot use frames
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >
The HTML4.01 document framework defines the type, which is equivalent to the HTML4.01 document transition definition type, but you can use the framework
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 frameset//en" "HTTP://WWW.W3.ORG/TR/HTML4/FRAMESET.DTD" >
XHTML1.0 document Transition definition types, documents defined by this type can use tags and elements in HTML to include tags that are not recommended by the user (e.g., font, b, etc.), and cannot use frames
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
XHTML1.0 document strictly defined type, the document defined by this type can only use the tags and elements defined in the HTML, cannot contain tags not recommended by the list (for example: Font, b) (this type is used in the dream), the frame can not be used
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
The XHTML1.0 document framework definition type is equivalent to the XHTML1.0 document transition definition type, but you can use the framework
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 frameset//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" >
XHTML1.1 document strictly defined type, equivalent to XHTML1.0 document transition definition type
<! DOCTYPE HTML PUBLIC "-//w3c//dtd XHTML 1.1//en" "Http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
HTML5 Document Type
<! DOCTYPE html>
-
Questioner evaluation
-
Thank you!
HTML DOCTYPE Document Type example description