search engine optimization articles do it yourself seo hiring search engine experts html and search engine optimization web site analysis and submission service

HTML Help: Doctype Purpose

While snooping in someone's source code I saw a page that started off with some weird DOCTYPE code instead of the <html> tag. I've never used that, what is it?
The DOCTYPE declaration is used to determine which version of HTML the browser should use to display the web page.

If no DOCTYPE is used most browsers will display pages in what is called "quirks" mode. That means the browser will attempt to display the page according to an older version of HTML and according to browser behaviors that don't comply with all HTML specifications.

The quirks mode is based on a time when browsers kind of did their own thing and ignored many standards. If you allow your site to be displayed in quirks mode it could mean some standardized code practices won't work correctly in modern browsers.

The DOCTYPE tutorial linked below will help you determine the best DOCTYPE for your website and show you where to place it in your code.

This concludes the

HTML Help about DOCTYPES

. Based on your interest in this FAQ, you might also be interested in this DOCTYPE Tutorial. It will help you determine the best DOCTYPE for your web site.
Back | HTML FAQ | HTML Tag Chart | HTML Index | Web Design Tutorials
search engine optimization course
If you want your web site to rank high in the search engines . . . what are you going to do to get it there? Check out my search engine optmization guide, SEO for YOU: Search Engine Optimization for Ordinary Everyday People!

Check out SEO for YOU now!

Almost a Newsletter

Subscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Email:

First Name:

Privacy Policy

Did you know...

The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
See my fancy bottom! :)