HTML: Difference of DTD

Source: Internet
Author: User
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">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.