Make your own free website on Tripod.com

Back Main GuestBook Contact Music (JS) Appendix

The Document-Type Declaration

This tag gives the version information for the document (what version of HTML you're using) and the location of the DTD for that version. The tag goes at the very beginning of the HTML document, before even the <HTML> tag, and has no closing tag.

HTML 4.0 has three versions:


Here is a sample HTML page:

Sample Page


Here is the code for the sample above:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>
All About Violets *\*/*
</TITLE>
<STYLE type="text/css">
<!-- H1 {color: #800080} -->
</STYLE>
</HEAD>
<BODY bgcolor="#FFFFFF" link="#FF0000" alink="#FF00FF" vlink="#0000FF" text="#006600">
<H1>All About Violets</H1>
<p>The beautiful wild violets that decorate lawns... blah, blah, blah...</p>
</BODY>
</HTML>