About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Doctype...

   Browse by title articles:
   What is hot:

Coding Code

Doctype

Absolute VS Relative

Image Maps

Nesting Tables

COLGROUP & COL

XHTML Doctypes
Adding/Replacing Arrays
DHTML-Introduction
What is XHTML?
Prev articles1234567 8 910Next articles



Doctype


Computer & I'net articlesDoctype

by David Stanley    



Some sites have a tag called DOCTYPE. This tag appears before the starting HTML tag. It lets the browser know exactly what type of coding it is trying to display. There are 3 types of DOCTYPE :

HTML 4.0 Strict
Use this when you have really clean structural mark-up, free of any tags associated with layout. Use this together with CSS to get the font, color, and layout effects you want. This DOCTYPE includes all elements and attributes that have NOT been deprecated and do NOT appear in a frameset document.

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

HTML 4.0 Transitional
Most people writing web pages for the general public to access will use this DOCTYPE. The idea is to take advantage of HTML 4.0 features (including CSS) while making small adjustments to the mark-up to accomodate those viewing your pages with older browsers. This DOCTYPE includes everything in the Strict DOCTYPE, plus deprecated elements and attributes. (Most of which concern visual presentation.)

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

Note : HTMlite uses Transitional DTD.

HTML 4.0 Frameset
Use this if you use HTML Frames to partition the browser window into two or more frames. This DOCTYPE includes everything in the Transisional DOCTYPE, pluse framses.

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



-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.





Tax Calculator




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com