OZONE Asylum
FAQ
Can you help me understand the DOCTYPE?
This page's ID:
5013
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "Can you help me understand the DOCTYPE?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
It's an interesting issue. You [b]must[/b] 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">[/code] 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: [url=http://www.w3.org/QA/2002/04/valid-dtd-list.html]W3C QA - Recommended list of DTDs you can use in your Web document.[/url] [url=http://www.htmlhelp.com/tools/validator/doctype.html]DOCTYPE validator[/url] [url=http://www.alistapart.com/stories/doctype/]www.alistapart.com/stories/doctype/[/url] [url=http://www.zeldman.com/daily/0402a.html#whatsupdoc]www.zeldman.com/daily/0402a.html#whatsupdoc[/url] [url=http://www.meyerweb.com/eric/dom/dtype/dtype-grid.html]www.meyerweb.com/eric/dom/dtype/dtype-grid.html[/url] [url=http://gutfeldt.ch/matthias/articles/doctypeswitch.html]Doctype switching and standards compliance: An overview[/url] [url=http://evolt.org/article/Does_Netscape_6_Break_Your_Table_Layouts/17/4427/]Does Netscape 6 Break Your Table Layouts[/url] [url=http://www.evolt.org/article/New_DOCTYPE_sniffing_in_upcoming_Mozilla_releases/1/32271/]New DOCTYPE sniffing in upcoming Mozilla releases[/url] [url=http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/doctype.asp]MSDN library entry[/url] ----------------------- Relevant threads: [url=http://www.ozoneasylum.com/Forum8/HTML/000388.html]DOCTYPE, DHTML and mozilla ...[/url] [url=http://www.gurusnetwork.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic;f=16;t=000050]DOCTYPE - in the Gurus Network[/url] [url=http://www.ozoneasylum.com/Forum8/HTML/000553.html]Doctype Issue[/url] ______________________ [internallink=4626]Emperor[/internallink] [small][i](Added by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Fri 24-May-2002)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Fri 11-Apr-2003)[/i][/small] [small](Edited by [url=http://www.ozoneasylum.com/user/5575]reisio[/url] on 07-11-2006 12:48)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »