Solved

DOCTYPE in HTML

Posted on 2004-04-18
2
315 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
ID: 10852570
> 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
ID: 10853226
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Data Entry Application 5 87
Windows 2012 - CertSrv Certificate Authority IIS web i/f - certificate template options missing 2 145
CSS HELP 6 83
Animated .jpg? 13 55
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

948 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

21 Experts available now in Live!

Get 1:1 Help Now