Sign in Registration

Validation of HTML source code, what are the common layout mistakes

When coding site pages, you should adhere to certain rules in order to end up with a high-quality layout page that will pass the check in the HTML validator . There are a lot of common errors that are easily detected during validation.


Where can you go through the validation of the source code of your site pages? There can be many validation services, but it is better to use the official validator from the World Wide Web Consortium - " The W3C Markup Validation Service ", usually available at: . There you can go through the code review by reference, download the source code manually as a file, or simply paste it into the text field. After checking, the validator will show errors or warnings, if any. The name of the error, the location where it is located, a link to the specification or other regulatory document, and recommendations for resolving the error are given.

You might think, why write valid code, because everything works like that. Why is it important that the page code is valid? There are many arguments, like this:

What are common HTML layout errors and warnings ? Here are some examples:

Only some of the errors and warnings that can most often be found by the HTML validator have been considered. Of course, not all developers pay attention to this and fix layout errors right away, but it is recommended to do it as soon as possible. It's more difficult to fix layout errors because you might have to rewrite a lot of code, so it's better to write valid HTML code right away. To do this, you can first read various guides and articles on this topic.

Comments (0)
For commenting sign in or register.

Latest articles

Popular sections


Login to the web version
Android app:
Available on Google Play

Share this

Subscribe to