HTML DOCTYPE tag - HTML DTDs document type declarations - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

15.1. HTML DOCTYPE tag

Example

XHTML transitional type definition, this type can be used in the labelling HTML4.

  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /> 

XHTML strict definition of type, the use of this document can only be defined in the label XHTML1.

  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Strict / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> 

XHTML1.1 version type definition (NT22 Tutorial on the use of this type).

  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.1 / / EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" /> 

XHTML framework defined types. (Can use the framework)

  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Frameset / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" /> 

Trackback Address: http://www.nt22.com/xhtml-html/tag_doctype/

HTML tags used in the statement is very special (different from the front on the label syntax), the use of <!, No closure at the end.