Solved

DOCTYPE in HTML

Posted on 2004-04-18
2
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

617 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