0845 205 0292

Request A Free Website Analysis

Close

Top 5 most common validation errors

January 26th, 2010 by

W3C Validation errors are errors in the coding of a web page, they can range from missing alt tags, right through to unclosed, or incorrectly nested tags.

A Search Engine spider is basically a piece of software that visits a website, and expects to find it in a certain format and layout, so each time it finds one of these validation errors it has to decide what should be there. This all takes time, and the spiders only have a finite amount of time to crawl and index a page. If this time elapses before the page is completely indexed then this will cause problems in rankings.

Here are the five most common validation errors we encounter, and how to fix them.

No DocTypes

A doctype tells the browser what form of HTML you are using, for example HTML 4.0, XHTML or HTML 5. This impacts how the rest of the code is expected to be read, affecting the parsing ergo the way it is displayed in the browsers.

A list of doctypes is available from the World Wide Web Consortium (W3C) website (http://www.w3.org/QA/2002/04/valid-dtd-list.html). Place the correct doctype at the top of the webpage, above the opening html tag.

Closing tags

Tags that are either not closed or are mismatched cause a lot of problems. When using html tags, they should be closed in the order that they are opened, for exampled:

<div>some <b>bold</b> and <i>italic</i> text</div>
not
<div> some <b>bold and <i>italic</b></i> text</div>

When using xhtml, tags that don’t have a partner closing tag (for example the image tag) should be self closing, i.e. should have a forward-slash before the end of the tag, for example
<img src=”file.jpg” alt=”a file” />. Another example is the line break tag (<br> for html and <br/> for xhtml).

HTML in JavaScript

You would not believe how often this happens. Mostly it’s people trying to prevent spiders getting their email addresses in order to stop spam email. They will use something along the lines of:

<script type=”text/javascript”>
document.write ‘<a href=”mailto:”+”info”+”@”+”domain.com”>Email</a>’
</script>

The problem here is the closing anchor tag. Closing tags are recognised so need to be escaped, whereas comments and opening tags are not recognised. There are two approaches to fix this; either comment out of the javascript (by putting <!– after the first line, and –> before the last line), or put a leading back-slash before the forward-slash (</a>).

Missing Attributes

A common example of a missing attribute is “alt” in the img tag. An easy fix, just include alt=””, for example <img src=”image.jpg” alt=””/>, but even this should be avoided. Wherever possible include a description in the alt tags, and wherever possible, include a keyword. This will help search engines determine what the image is about, and may include it under their respective images search, creating another possible source of traffic.

Flash

This is the most common problem with websites that use flash. The <embed> tag was created by Netscape as their method of embedding plug ins and players in web pages. As it is not part of the XHTML specification it needs fixing. There are a couple of fixes – one is to use javascript to write the embed code, or use the fully valid object code:

<object data=”flashmoviename.swf” type=”application/x-shockwave-flash” width=”504″ height=”250″>
<param name=”MOVIE” value=”flashmoviename.swf” />
</object>

Any additional parameters can be included in using the param tag within the object tags.

We, at SEO Consult, understand that having a fully validated website is of huge benefit to your SEO campaign as it allows spiders to work out what your pages are about by being able to remove the content from the html tags easily, without having to guess at the correct html in order to make sense of the content.

This entry was posted on Tuesday, January 26th, 2010 at 12:36 pm . RSS GlobeYou can follow any responses to this entry through the RSS feed.

Link to us

If you want to link to this blog, copy and paste the following HTML code to your website.

Navigation

Blog Categories

Free SEO Analysis & Proposal

From The Blogread news

  • FEB 13
    I've spent a bit of time recently covering the Facebook SEC S-1 filing that has been made in preparation for their IPO, including 5 of the most significant risk factors that Facebook faces.  In this blog I'd like to focu...
  • FEB 12
    Link building is still a process integral to any search engine optimisation campaign.  While the school of thought that social media marketing is the new link building is relatively well established, there is still a pla...

Latest Newsread news

  • FEB 13
    In December Bing became the number 2 search engine in the US beating Yahoo. In January Bing continued to take more of the market share and Yahoo continued to decline. Google also continued to climb and now has a 66.2% share of the...
  • FEB 10
    A Study was recently carried out by a US not for profit Research Company called Pew Internet, the survey revealed that the majority of users who engage in social media sites on a regular occurrence have a positive experiences and ...

Clients Say...

"We've long been considering an SEO campaign and have researched the benefits that it could potentially bring to our web presence," commented 3663 Catering Equipment's Managing Director Paul Knight. "The team at Click Consult put together a very attractive package and we're pleased to be able to enter into a sound business partnership with them. We're looking forward to seeing the results they can provide for the 3663 Catering Equipment website moving forward."

3663

Managing Director - 3663 Catering

"We have been working with Click Consult for over a year now. We are delighted with the increase in unique visitors to our site and they have far exceeded our conversion KPI metrics for customer database registrations. We rank in the top 3 for all keywords that we asked Click Consult to optimize for us. This agency know how to produce results."

hills pets

Managing Director - Liverpool One

"Whilst we have a long term keyword strategy, Click Consult have a good appreciation of our business and have a flexible approach to implementing short term keyword strategies to coincide with the peaks of the retail calendar. I receive a monthly performance report from Click Consult detailing the relevant data I require but in addition, I can review the work being undertaken at any time by logging in to their bespoke reporting system."

hills pets

CRM Manager - Liverpool One

"Hills has been looking for an agency that is able to quickly deliver in the search marketing area and catapult EMEA websites ahead of the competition. Taking SEO Consult for this project turned out to be a smart choice. Not only have they managed to significantly increase search engine traffic to our websites, but they also come with innovative ideas that can be turned to reality. I can simply say they deliver. And it's always a pleasure talking to them."

hills pets

Managing Director - Hills Pets