Common HTML Validation Errors - Part II
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 “
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.







