1. Home
  2. Computing & Technology
  3. Web Design / HTML

<!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:

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. XML
  5. DTDs
  6. The DOCTYPE Element - DTD Reference - XHTML 1.0 HTML 4.0>

©2009 About.com, a part of The New York Times Company.

All rights reserved.