Pay Per Click Header
 

May 15, 2008

Common HTML Validation Errors - Part II

Filed under: W3C — Nick @ 3:40 pm

Due to the success of my initial blog regarding HTML errors, I have decided to inform you of more W3c errors that are frequently ignored and that will increase the indexing and therefore rankings of your website.

These are slightly more complicated and may require external research, but feel free to get in touch if you would like your site completely optimising by one of the professional programmers here at SEO Consult.

required attribute “TYPE” not specified. – The most common occurrence of this fault is when you have used CSS or javascript and not declared it within your code. You should use a tag like this to solve this problem.

<script type=”text/javascript” language=”javascript” src=”scripts.js”>

</script>

NET-enabling start-tag requires SHORTTAG YES or document type does not allow element “META” here. – This is a simple fix, you have specified that your document be formatted to HTML, HTML mark up does not allow / to close a tag. I.e. <br /> should be changed to just <br>.

Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml - This appears when you have created a HTML page and have failed to include the standard information. The best way to resolve this is to open a Dreamweaver HTML file, generating the right information as default, and then copy and paste into yours.

ID “exampleDiv” already defined.- When you see this error it is suggesting you have opened a div named exampleDiv, and then opened another div further on in the HTML code and called it the same name. The solution for this is to call all the duplicates <div class =”exampleDiv”> which will then sort out the problem.

Next time we can look at validation to Strict standards, this will be more successful but at the same time can be excruciatingly frustrating to clear.

Click here for FREE Search Engine Optimisation Analysis

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

 
Pay Per Click Header