When we want to improve a website's search engine ranking, we usually start with the content, keywords, or links. But there's another aspect we should also review: how the page is structured and what information we're providing to Google through its HTML code.
Even if you work with WordPress, PrestaShop, or any other content management system, knowing a few HTML tags will help you better understand your website. You don't need to know how to program, but it helps to know what it's used for An H1—what's the difference between the title and the meta description, or why a page might not show up in Google even if it has good content.
At Geotelecom We review these elements when we work on a website's SEO. The point is not to write perfect code, but to ensure there are no errors that make it difficult to crawl, index, or interpret the content.
How is HTML related to SEO?
HTML is the language we use to organize the content of a web page. It allows us to specify which elements are headings, paragraphs, images, links, or lists.
When Google crawls a URL, it analyzes its content and the signals it finds in the code. That's why, A clear HTML structure can help you understand what a page is about and how its different sections relate to one another.
However, having valid HTML does not mean that a website will automatically rank higher.
For example, the W3C It sets standards for web development, but adhering to them does not guarantee a top ranking on Google. What matters to us is that the code allows users to access the content correctly and does not introduce issues that could affect its visibility.
A website can pass a technical validation check and still have uninformative titles, pages blocked due to errors, or a structure that makes it difficult to find certain content.
That's why, when we talk about HTML and SEO, the important thing isn't to use a lot of tags, but rather understand what each one does and configure it correctly.
Basic HTML Tags You Should Know
You don't need to memorize all the HTML tags. To start with, there are a few that are worth knowing because they affect how we organize and present content.
H1, H2, and H3 Headings
Headings are used to organize information and make it easier to read. The H1 heading typically introduces the main topic of the page, while the H2 and H3 headings break it down into sections.
For example, in a mattress category, we could use this structure:
<h1>Mattresses for a Good Night's Sleep</h1>
<h2>Types of Mattresses</h2>
<h3>Memory foam mattresses</h3>
<h3>Pocket-Spring Mattresses</h3>
<h2>How to Choose a Mattress</h2>
This way, both users and search engines can understand how the content is organized.
One of the mistakes you should avoid is choose headings based solely on their size or visual appearance. If we want a heading to appear larger or smaller, we can adjust it using CSS without changing its HTML level.
We should also avoid repeatedly using the same keywords in every heading. The goal is for each heading to accurately describe the information that follows.
And here's an important point: a well-written H1 tag doesn't make up for content that doesn't address what the user is looking for. Headings help organize information, but they don't replace a good content strategy.
Title and meta description
These two tags are usually reviewed together, even though they don't serve exactly the same purpose.
The title is the title we define in a page's HTML. Google may use it to generate the title link that appears in its search results.
It is recommended that youDescribe the content of the URL and include the main keyword when it feels natural and helps distinguish that page from the rest.
There is no exact length that guarantees Google will display the entire title. Therefore, rather than obsessing over a specific number of characters, we should focus on making sure it is clear and concise.
The meta description, on the other hand, summarizes the page's content:
<meta name=»description» content=»Conoce las características de los colchones de muelles ensacados y qué debes tener en cuenta antes de elegir uno.»>
Google may use this description in the search results, although it may also display another snippet of the content if it determines that it better answers the search query.
In addition, it is worth noting that The meta description is not a direct ranking factor. Their purpose is to provide relevant information that helps users decide whether they want to visit our website.
Both elements are part of the work of SEO On Page, along with headings, content, images, and internal links.
ALT Attribute in Images
The alt attribute allows you to add alternative text to an image.
It is especially important for accessibility, since screen readers can use it to convey information to people with visual impairments. It also helps search engines interpret the content of images.
An example would be:

The description should explain what the image shows or what function it serves on the page.
There's no need to repeat the keyword multiple times or use overly long text. In fact, Filling in all ALT attributes with the same keyword is not good SEO practice.
Let's consider a product page with five photos. If each image shows a different part of the item, it makes sense for their alt text to also be different when they provide relevant information.
On the other hand, if an image is purely decorative, an empty alt attribute can be used.
Links and the href attribute
Links are essential for connecting the different pages of a website.
In HTML, they are created using the `a` tag and the `href` attribute, which specifies the destination address:
<a href="/en/»/categoria/colchones/»/">View available mattresses</a>
From an SEO perspective, it's important to review both the destination and the anchor text we use for links.
For example, «View available mattresses» provides more information than «Click here». The user knows what to expect, and search engines receive additional information about the linked page.
This has This is especially important for online stores and websites with a lot of content. We may have a well-optimized category, but if it receives very few links from other pages on the site, we’ll be missing out on opportunities to increase its visibility and make it easier to discover.
That's right, Nor is it about filling every article with links. They should appear when they help the user find more information or access related content.
Meta robots and indexing
The meta robots tag allows you to provide instructions to search engines on how to handle certain pages.
One of the best-known directives is "noindex":
<meta name=»robots» content=»noindex»>
We use it to tell compatible search engines that we don't want that page to appear in their results.
It may be useful for certain URLs, but Applying it by mistake to a category, a product listing, or a sales landing page may prevent it from being indexed.
It is also important to distinguish this tag from the robots.txt file.
While robots.txt controls crawlers' access to certain URLs, the "noindex" tag is used to request that a page not appear in search results.
They are not the same thing, and they should not be used interchangeably. In fact, blocking a page in robots.txt can prevent Google from recognizing the "noindex" directive included in its HTML.
Other HTML tags that are important for SEO
In addition to the ones mentioned above, there are other tags and annotations we should be familiar with, especially if we run an online store, an international website, or a site with many URLs.
Canonical tag
The canonical tag allows you to specify which URL you consider to be the primary one when there are several pages with duplicate or very similar content.
<link
rel=»canonical»
href=»https://www.ejemplo.com/categoria/colchones/»>
It is common to review these settings in e-commerce, where filters, parameters, or product variations can generate different URLs for similar content.
That's right, The canonical tag is a signal for Google, not a mandatory rule that it must follow.. Therefore, it should be consistent with the rest of the website's design.
hreflang tag
If a website has versions in various languages or targeted at different countries, hreflang tags help indicate which version is intended for each audience.
For example:
<link rel=»alternate» hreflang=»es-ES»
href=»https://www.ejemplo.com/es/»>
<link rel=»alternate» hreflang=»en-GB»
href=»https://www.ejemplo.com/en/»>
Adding these tags is only part of the job. We also need to make sure that each version of the site links correctly to the others and that the canonical URLs are set up properly.
For example, if we have a page in Spanish and another in English, both should indicate that relationship. Otherwise, we may find that Google does not use these signals as we expect and ends up displaying a different version than the one we want for certain searches.
Semantic HTML
You may also come across tags such as "main," "nav," "article," "section," or "footer." Although they don't usually get as much attention as headings or meta tags, they do serve a purpose.
Each one identifies a specific part of the website. For example, "nav" indicates a navigation area, while "main" identifies the main content of the page.
Does that mean that using them will improve our search rankings? Not necessarily. But They do help organize the code and make it easier for the different parts of a page to be interpreted correctly, which is also important for accessibility.
How can you check your website's HTML?
There's a pretty simple test you can do without installing any tools. Go to a page on your website, right-click, and select «View page source».
You'll see a tab full of code, but you don't need to understand it all. For example, if you press Ctrl + F and search for »title,» you can find the HTML title. You can also search for "meta name='robots'" to check if there are any directives related to indexing.
Keep in mind, though, that you're looking at the source code initially received by the browser. If the website uses JavaScript When loading certain elements, they may not appear there.
To check this, go back to the page and select «Inspect». This option shows what the HTML structure looks like after the browser has processed the content. If you'd like to learn more about this difference, we explain it in our article on Web Rendering and SEO.
What if you need to review an online store with 2,000 products? Obviously, you're not going to open the code for each record one by one.
In these cases, we use tools like Screaming Frog, which allow us to crawl many URLs and identify issues all at once: duplicate titles, broken links, and pages with "noindex" or canonical tags that need to be reviewed.
But Not all errors that appear in a scan are equally important. If we find 50 duplicate meta descriptions and a main category that Google can't index, we know where to start.
That is precisely one of the goals of a SEO audit: Review the issues that have been detected, understand how they affect the website, and decide which ones need to be addressed first.
HTML Errors to Avoid
Although every website is different, there are issues worth checking when analyzing its HTML structure:
- Empty or duplicate titles: can make it difficult for each page to have a clear identity in search results.
- Headings used without a logical structure: make the content seem less organized and harder to understand.
- Broken internal links: They interfere with browsing and can make it difficult to access important pages.
- Incorrect indexing directives: They can prevent URLs that we actually want to rank from appearing on Google.
- Incorrectly configured Canonicals: They may send mixed signals about which version of a page should be considered the primary one.
- Important content that relies on JavaScript: You should verify that Google can access it and interpret it correctly.
Not all of these errors have the same impact or require the same solution.
In fact, A website can have perfectly sound HTML and still fail to achieve good organic results. In that case, we'll need to analyze other factors, such as competition, search intent, content quality, and site architecture.
That's why checking labels is important, but it shouldn't turn into a checklist that we go through without understanding what's really going on.
Is it enough to have well-optimized HTML?
Imagine we've reviewed a page and everything seems to be in order: it has an appropriate title, the headings are well organized, the images have alt text, and Google can index it without any problems.
Does that mean it should already appear among the top results? No.
HTML helps us build our website, but we also need to consider what content we offer, which search queries we want to address, and how we make it easier for users to access our most important pages.
In fact, when we analyze a website, we don't always find a major technical issue that explains why it isn't ranking well. Sometimes there are several minor issues; other times, the content isn't addressing what the user is actually looking for.
That's why, as SEO agency, at Geotelecom, we don't just check tags. We review the entire website to understand what's worth working on and where it makes sense to focus our efforts.
Do you need help with your website's SEO?
If you've been working on your website's search engine optimization for a while and aren't getting the results you expected, we can help you figure out what's going on.
At Geotelecom We have a team that specializes in SEO that can analyze your website and suggest the improvements it needs.
Contact with us and we'll talk about your project.
