W3C or World Wide Web Consortium was created in 1994 at the MIT (Massachusetts Institute of Technology) and manages the revision of standards in the code of web pages around the world. and what does this mean? Well, very simple, their recommendations have become the guide of good practices that every website should follow as faithfully as possible. The use of these standards will not only assure us that the page is correctly conceived, but we will also make sure that the search engines understand it perfectly. (Later we will expand this information with Schema.org and its use so that Google identifies the meta-data of our website)
What is the validator?
It is an online tool that W3C facilitates us to enter a certain URL and this will analyze and inform us of the errors contained in the HTML code of the site, separated between errors to correct and notices. Needless to say, those listed as errors should be corrected if or if, making the relevant changes in the code if necessary.
How to use the validator?
The url https ://validator.w3.org/Locates this tool and has a very simple interface supplemented with different options. It will be enough to enter a url of our domain that we want to review and click on the CHECK button. before checking that there are several checkboxes that indicate different options to show us the errors, being very important those called Source and Outline, because these will complement the list of errors with a copy of the code that the tool has been able to read and will underline the line where lies the error. Very useful when we get down to work to solve them, although anyway, in each error will indicate the line and column where the error is.
What kind of errors can I expect?
The vast majority of errors are usually html tags that are inside labels that do not correspond to them, like an ol that has direct children that are not li, we will also find labels that have properties that should not be assigned to them, as a goal with an src attribute. If the website is not in English and there is also some conflict with the collation of the database, it is possible to warn us that there are incomprehensible characters.
On the other hand, the notices usually go in the line of that certain labels should carry according to which child labels, for example, the section label should contain a h2-h6.