How to test HTML validation of a Drupal/Non-Drupal site - A Testers View

By | 11th Jan 2013 | 2 min read

HTML validation is done mainly to ensure that webpages follow the HTML standards and rules set by W3C (World Wide Web Consortium). A webpage with correct HTML helps

  • to increase the speed of the website
  • search engines to index webpages more easily
  • to increase the traffic of the site by giving access to more visitors to the site
  • to reduce the load on the server
  • in giving similar look and feel to the webpages in all browsers
  • to easily update and maintain the site

Therefore all pages in a website be it drupal or non drupal, should be validated and must be correct according to W3C standards.

HTML validation can be done by giving the URL of the web pages in a validator "" The validator validates and displays whether the webpage contains any HTML errors.


How to test HTML validation in different Browsers

In Mozilla Firefox:

  1. Install web developer tool in Mozilla Firefox.
  2. Load the site in Mozilla.
  3. Open each page in the site to be validated.
  4. Click Tools > Web developer > Tools > Validate HTML.


In Google Chrome:

  1. Install Pendule 1.0.0 to your Google chrome addons.
  2. Click on the Pendule icon displayed on the navigation bar
  3. Select the option 'Accessibility' from the drop down list.
  4. Select validate HTML.

This article describes only two methods to check html validation. We can also check the validation by opening any validator site and submitting either source code or site's URL. Thus we can assure that the site has passed HTML validation.