Jump to content
xisto Community
Sign in to follow this  
SamiFX

Doctype Declaration What does it mean?

Recommended Posts

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 ...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.