!DOCTYPE Element

MS Office DHTML, HTML & CSS

 
Click to return to the DHTML, HTML & CSS home page    
A Element | A Object     DHTML Objects    

!DOCTYPE Element


Specifies the HTML document type definition (DTD) to which the document corresponds.

Remarks

Different versions of the DTD can be used depending on the level of compatibility the author wants to indicate.

The !DOCTYPE element does not require a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0.

Example

The first example uses the !DOCTYPE element to indicate compatibility with the HTML 3.2 DTD, while the second uses it to indicate a strict adherence to the HTML 4.0 DTD.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.