|Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login|
HTML DOCTYPE TutorialThe DOCTYPE declaration should be the first thing in an HTML document, even before the opening <html> tag.
The DOCTYPE declaration simply informs web browsers which mark-up language and which version of the markup language the page is written in.
The DOCTYPE declaration refers to a Document Type Definition, or DTD for short. The DTD specifies the rules for the markup language so browsers can render the content according to established standards.
DOCTYPE DeclarationsBelow are the DOCTYPE declarations recommended by the W3C.
HTML 4.01 Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
The above DTD contains all the standard HTML elements and attributes, but does not include deprecated elements. Framesets are not allowed with this DTD. Framesets have their own DTD which is listed further below.
HTML 4.01 Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
The above DTD contains all the standard HTML elements and attributes, including presentational and deprecated elements. This is probably the most comment DTD in use and the one I recommend for most webmasters. Framesets are not allowed with this DTD. Framesets have their own DTD which is listed further below.
HTML 4.01 Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
The above DTD is for use with framesets.
This concludes the HTML DOCTYPE Tutorial.
Check out SEO for YOU now!
Almost a NewsletterSubscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects