Solved

DOCTYPE in HTML

Posted on 2004-04-18
2
347 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

735 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