spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

Web Production Manager
Targus
US-CA-Santa Clara

Justtechjobs.com Post A Job | Post A Resume
Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use


HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Document Type Definition

<!DOCTYPE>

Description: Tells the browser what version of HTML is being used.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • None

Code Example:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


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


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

Comments: Should be the first line in the HTML document. Failure to use the element may result in validation errors and page display problems.

XHTML Notes: The DOCTYPE element must appear in the upper/lowercase letters shown here, even in XHTML.




Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Creating an ASP.NET Registration and Confirmation System · Combine Ajax and JSON to Transmit Complex Presentation Data · Ten Tools Web Developers Can't Live Without
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Identifying and Eliminating the Dreaded Cartesian Product · Small Business Marketing Tips: Accepting Failures · Yahoo, Microsoft Begin AdCenter Shift

Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/