Go back to entries

Use of DOM tags

Use of DOM tags

One of the pillars of the most technical SEO is the correct application of the corresponding labels to your web page so that Google can interpret them and catalog them according to the interests of the users and our own. There are lots of different labels and the number is increasing with each new version of html standards, but a common mistake is to decide which labels are used only by reference to their inherent styles. & nbsp; So, when to use p or span? When to use section or article? When is ol or ul? The truth is not written in stone and is subject to many nuances but usually should be imposed common sense.

The h1 tag should be reserved for the title of the url in which we are, or what is the same, the subject that defines this direction and in any case can be complemented with a h2 that finishes nuancing or specifying the section, very appropriate to introduce dynamic variables. & nbsp;

Article and section are two labels that a prior may seem very similar but that each has its appropriate use. The article label will be exclusively dedicated to written texts such as news, blog posts or press clippings, while the section label should be used only to divide the content of a url into different categories, such as the product section, below section of opinions and perhaps a section with related articles aside.

Another aspect to take into account are the properties that can be defined for each label and the specific characteristics of each one, for example, inside of an ol or ul only there should be elements of type li. Then, different elements have access to different special properties, such as an a must have a href while a href has no place within a div or section.

To make checks on our URLs we can use various tools, being our favorite validator.w3.org, which will show us a list of errors in the html syntax, both serious errors and good practice notices.


Author:

Access our section on tailor made projects Web Design

Comparte este artículo en tus redes sociales