Tips to troubleshoot HTML validation errors

| | 1 min read

Why we spend hours on fixing HTML validation errors? Because we know how much reliability and quality matter when it comes to serving customers through the web. With Drupal, most of the page is generated, and the rest is the content that we type into the editor. If your article contains Markup Validation Errors, it could spoil all the efforts put in building a good website.

For those who want to keep their website updated with new articles and clean at the same time, can go try these tips for troubleshooting HTML validation errors,

  • Close all HTML elements

Close all HTML elements

  • Close HTML tags in the correct order.

Close HTML tags

  • Convert special characters

1. Replace all '&' with

&

2. When code given inside 'pre' and 'code' tags - Replace all '<' with

&lt;

and '>' with

&gt;

Convert special characters

  • Use block element to wrap inline elements and not in the other way round

block element to wrap inline

Happy troubleshooting!