Solved

DOCTYPE in HTML

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web Application Architecture 6 78
Using YubiKey with REST API application 2 117
Problem to file 3 75
.php tree directory? 5 73
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
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)

778 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