Solved

What's the purpose of DOCTYPE? What would happen without it?

Posted on 2011-09-07
3
194 Views
Last Modified: 2012-05-12
Hello,

Like to know the purpose of header DOCTYPE?

It can certainly work without it, but what affect does it have and why is it important? Is it anything to do with SEO?
0
Comment
Question by:Gerson008
3 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 125 total points
Comment Utility
The doctype declaration should be the very first thing in an HTML document, before the <html> tag.

The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.

The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers render the content correctly.

For more details:

http://www.htmlcodetutorial.com/document/_33nDOCTYPE.html
http://www.w3schools.com/tags/tag_doctype.asp
0
 
LVL 29

Expert Comment

by:QPR
Comment Utility
In html 5 this will/is simply <!DOCTYPE HTML>
Now we just need to wait for the browsers to catch up
0
 

Author Closing Comment

by:Gerson008
Comment Utility
It's good, answered the question!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now