1.

Solve : DOCTYPE & Meta Content?

Answer»

Is this information placed on the first page only (index) or does it need to be on each html page? Also how important are these items? Doctype should be on each page - and IMO meta data can also be repeated - I have all that within a template usually and so it gets repeated, ALTHOUGH the homepage is I reckon the most important for all that - it should be the first page to get spidered. If you happen to use frames, make SURE all your data is in its frames page head area.

A starter page from Dreamweaver gives this .......

Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="CONTENT-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>
Make sure no space left above the doctype page code start, unless adding in some php initially or a cgi call, but STILL no white space. Your meta data can include content, keywords, author - numerous options but, keep a keywords list IMO 32 items max - SEARCH engines will reject ultra long strings of keywords.It should be on every page and it is important because spiders should be able to read your content. Your pages will be hard to spider and index if they have codification errors. You should check your HTML code with The W3C Markup Validation Service. Quote from: busweb on December 13, 2008, 01:55:11 PM

Your pages will be hard to spider and index if they have codification errors.

Not entirely correct, because most spiders now use the robots.txt file.


Discussion

No Comment Found