Document directory
- Strict)
- Transitional (Transition type)
- Frameset (framework type)
- XHTML 1.0 strict
- XHTML 1.0 transitional
- XHTML 1.0 frameset
- HTML strict DTD
- HTML Transitional DTD
- Frameset DTD
XHTML document type:
- Strict)
- Transitional (Transition type)
- Frameset (framework type)
XHTML 1.0 strict
<! Doctype HTML <br/> Public "-// W3C // dtd xhtml 1.0 strict // en" <br/> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
In this case, a clean mark is required to avoid confusion. Use it with the stacked style sheet.
XHTML 1.0 transitional
<! Doctype HTML <br/> Public "-// W3C // dtd xhtml 1.0 transitional // en" <br/> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
In this case: When you need to use HTML's performance features, and you need to write XHTML for browsers that do not support stacked style sheets.
XHTML 1.0 frameset
<! Doctype HTML <br/> Public "-// W3C // dtd xhtml 1.0 frameset // en" <br/> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
In this case, you need to use the HTML framework to split the browser window into two or more frames.
Html
HTML 4.01 specifies three types of documents: strict, transitional, and frameset.
HTML strict DTD
Use this type if you need a clean flag to avoid confusion on the presentation layer. Please use it with the stacked style sheet (CSS:
<! Doctype HTML public "-// W3C // dtd html 4.01 // en" "<br/> http://www.w3.org/TR/html4/strict.dtd">
HTML Transitional DTD
Transitional DTD can contain the rendering attributes and elements that W3C expects to move into the style sheet. If you use a browser that does not support Cascading Style Sheets (CSS), you must use the HTML Rendering feature:
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "<br/> http://www.w3.org/TR/html4/loose.dtd">
Frameset DTD
Frameset DTD should be used for documents with frameworks. Except that the frameset element replaces the body element, the frameset DTD is equivalent to the transitional DTD:
<! Doctype HTML public "-// W3C // dtd html 4.01 frameset // en" "<br/> http://www.w3.org/TR/html4/frameset.dtd">