Solved

DOCTYPE in HTML

Posted on 2004-04-18
2
303 Views
Last Modified: 2013-12-16
What kind of DOCTYPE should I add for a common html page ? My page is just a common html page, does not use frame ... only images and some flash plus javascript.

I verified my html page using CSE HTMLValidator, and it said that it does not have DOCTYPE, and I must choose from 3 kind of them.

Is that true that if dont have doctype, then the search engine will not index my page ?

More, do I need to follow all recommendation that found by HTMLValidator software?

My questions are related to acceptance by search engine. I made all my web page using Macromedia Dreamweaver.

Please give your advice.

Thank you,
0
Comment
Question by:nova2002
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 95 total points
Comment Utility
> What kind of DOCTYPE should I add for a common html page ?

http://www.w3.org/QA/2002/04/valid-dtd-list.html lists common Doctypes. HTML 4.01 Strict is usually the best choice for new documents.

> I verified my html page using CSE HTMLValidator,

The CSE HTML Validator isn't a validator, it is a lint. Try the w3c Markup Validation Service <http://validator.w3.org/> or A Real Validator <http://www.arealvalidator.com/>

> Is that true that if dont have doctype, then the search engine will not index my page ?

No

> More, do I need to follow all recommendation that found by HTMLValidator software?

The CSE HTML "Validator" - no, some of the advice it gives is utter [self-censored[
Any real validator - its a very good idea to do so

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
I think Dorward has about covered everything very well.  I would just add one thing.  If Dreamweaver has put the styling directly in the page on inline, you might want to put it in an external stylesheet to help you down the road to maintain a consistent look.  The CSS should also be validated at w3c for at least CSS1, though CSS2 is better.  If the pages have a print component you should validate the CSS for both screen and print.  You may choose not to comply 100%, but at least have an idea which  elements may not print correctly.

Cd&
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wordpress limitations 4 91
Contact Forms for Website 6 65
CSS HELP 6 73
Grunt No Clean Targets 6 53
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
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…

762 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

6 Experts available now in Live!

Get 1:1 Help Now