Common Errors
For this blog I am going to review some of the most common validation errors on all types of document types, except frame sets, as these are out of date and in terms of SEO, are completely useless and I don’t say that lightly. To understand this blog you will need a little knowledge of HTML, otherwise you might find it a little hard going.
Common error for all document types
1) Not declaring alt tags on Images I.e ALT=”"
2) Using the same ID more than once
3) Incorrect nesting of elements I.E <b><i>text</b>word</i> should be <b><i>text</i></b>word
4) Forgetting to close an element that you have opened
5) Spell center in proper English, use global English I.E centre
6) No declaring a document type
HTML 4.01 Common errors
1) Closing, <br /> should be <br>
2) Ending a call to a file within the head tags with “/>” this is a very common error, should be <rel=“stylesheet” href=“style/style.css” type=“text/css” media=“screen” >
XHTML 1.0 Common errors
1) Not closing you <br> should be <br />
2) Using & in dynamic URLS i.e /index.php?section=serve&action=3″ need to be replaced with &
3) Table elements don’t support background="" I.E <td background=“images/main.jpg” in cases like this you need to use CSS
4) Table elements don’t support height="" I.E <td height=”52″ in cases like this you need to use CSS
5) Not ending a call to file within the head tags with “/>” this is a very common error I.e <rel=“stylesheet” href=“style/style.css” type=“text/css” media=“screen” >
6) Table elements don’t support bordercolor=“#666666″ use CSS to archive this
I could go on like this all day but I think I have covered what I consider to be the most common validation errors. To take it further is out of the scope of this blog, to check is your site has valid mark up go to Validator.w3.org.
Related posts: