Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
HTML

Can you help me understand the DOCTYPE? Differences Pages that link to <a href="https://ozoneasylum.com/backlink?for=5013" title="Pages that link to Can you help me understand the DOCTYPE? Differences" rel="nofollow" >Can you help me understand the DOCTYPE? Differences\

It's an interesting issue. You must put one at the beginning of every web page you create as its absence will cause some recent browsers to display your page oddly without it. It's also generally not advisable to put anything before the doctype declaration.

The basic format looks like this:

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



But there are numerous variants depending on what kind of page it is and the type of code you are aiming at. Read up on these resources:

--------------------------
Relevant links:

W3C QA - Recommended list of DTDs you can use in your Web document.

DOCTYPE validator

www.alistapart.com/stories/doctype/

www.zeldman.com/daily/0402a.html#whatsupdoc

www.meyerweb.com/eric/dom/dtype/dtype-grid.html

Doctype switching and standards compliance: An overview

Does Netscape 6 Break Your Table Layouts

New DOCTYPE sniffing in upcoming Mozilla releases

MSDN library entry

-----------------------
Relevant threads:

DOCTYPE, DHTML and mozilla ...

DOCTYPE - in the Gurus Network

Doctype Issue
______________________
Emperor

(Added by: Emperor on Fri 24-May-2002)

(Edited by: Emperor on Fri 11-Apr-2003)
(Edited by reisio on 07-11-2006 12:48)

« BackwardsOnwards »

Show Forum Drop Down Menu