1. Computing

Discuss in my forum

<!DOCTYPE>

By , About.com Guide

<!DOCTYPE> Description:

The <!DOCTYPE> element defines the document type definition for the element.

<!DOCTYPE> Web Browser Support:

<!DOCTYPE> Attributes:

None.

<!DOCTYPE> End Tag:

None. <!DOCTYPE> is a singleton tag.

Contents:

None.

<!DOCTYPE> Valid Context:

The <!DOCTYPE>; tag can only be found at the beginning of HTML documents, before the <html> tag. The <!DOCTYPE> tag is valid within the following tags:
None

<!DOCTYPE> Usage:

  • XHTML 1.0 DTD
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • HTML 4.0 Transitional DTD
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE> Special Notes:

  • This tag is required if your pages are to be XHTML compliant.

More <!DOCTYPE> Information:

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. XML
  5. DTDs
  6. The DOCTYPE Element - DTD Reference - XHTML 1.0 HTML 4.0

©2013 About.com. All rights reserved.