Understanding XML declarations and the importance of DOCTYPE in DTD

The DOCTYPE declaration is needed if the web page needs to be validated against a particular DTD. HTML validation is done if the DOCTYPE is specified.

Each browser has two types mode for rendering the page. One would be the standard mode and the other would be the quirks mode. In the standard mode the web page is validated against the DTD specified in the DOCTYPE declaration.

When you specify the DOCTYPE, the html page is validated against the specified standard and found out if it is valid or not. So what will happen if you have not specified that? The browser will go into the quirks mode where validation is bypassed.

There are many valid DOCTYPE declarations that can be used in an html page. You can find this list in the URL

http://www.w3.org/QA/2002/04/valid-dtd-list.html



.

SetApp - 100 Apps for everything you ever wanted to do on Mac

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________






 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

Copyright - © 2004 - 2019 - All Rights Reserved.