|
|
|
|
![]() ![]() |
Aug 25 2007, 01:16 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 219 Joined: 3-February 07 From: Algeria Member No.: 38,241 |
I've created many HTML websites and to now, I don't know the DOCTYPE declaration on the first line of the document means!!.. I've tried puting it and removing it but nothing happens ...
|
|
|
|
Aug 25 2007, 01:39 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,077 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
The short version of the purpose of the Document Type Declaration is that it is a link from the HTML page to the list of "rules" the Browser should use to interpret and render the HTML coding the page contains. The w3c is the organization which determines the "rules" and they have several DocTypes available for your use here.
The effect of using a "proper" Document Type declaration is that the Browser either uses "Standards Compliance" mode to render the page or "Quirks" mode. Quirks mode is where the Browser will guess at the intended rendering and will cause the page to display incorrectly (according to the w3c interpretations). Internet Explorer is the Browser which is usually the problem with using Quirks Mode. Konquerer, Opera, Firefox and Safari are the most compliant Browsers for using Standards Mode. The chances are that if you remove the DocType Declaration and the page doesn't change, then you may not be using a DTD which promotes Standards Mode. A review of the above list of DTD's would then be recommended. |
|
|
|
Nov 17 2007, 09:09 PM
Post
#3
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 77 Joined: 11-November 07 From: London Member No.: 52,835 |
Basically, it tells the browser what language (and what version of that language) your page is in.
I suggest having a look at http://www.w3.org/QA/Tips/Doctype and http://www.w3schools.com/ (and searching for doctype at the second one). |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 7th October 2008 - 09:19 PM |