SEO is not only about keywords: a handful of HTML tags tell Google what a page is about, which version to index and how to show it in results. Here are the nine that really matter, what they do, and the myths to drop.
In the <head>
1. <title>: the page title
<title>Length converter: m, km, feet, inches | ToolSmartly</title>
It is the main source of the clickable title Google shows, and one of the elements that help it understand the topic. One unique title per page, starting with the topic. Lengths and rewrites are covered in our title and meta description guide.
2. <meta name="description">: the summary
<meta name="description" content="Convert metres, kilometres, feet and inches in one click, with the formulas and a table of common values.">
It plays no part in ranking, but Google often uses it as the snippet under the title: it is what makes people want to click. Write a different description for each page.
3. <link rel="canonical">: the reference version
<link rel="canonical" href="https://www.example.com/products/hiking-backpack">
When the same content is reachable at several addresses (sort parameters, campaign tracking, printable version), the canonical says which one to index. Google treats it as a strong hint, not an order. Use an absolute URL, and only one canonical per page.
4. <meta name="robots">: index or not
<meta name="robots" content="noindex, follow">
noindex removes a page from results (thank-you page, internal search, customer area). Beware: blocking the page in robots.txt stops Google from reading this tag, so a page blocked by robots.txt can stay indexed if other sites link to it. To remove a page, keep it crawlable with noindex.
5. <meta name="viewport">: mobile display
<meta name="viewport" content="width=device-width, initial-scale=1">
Without it, a phone renders the page like a desktop screen, shrunk down. Google mainly crawls and evaluates sites in their mobile version: a page unreadable on a phone starts at a disadvantage.
6. lang and hreflang: the language
<html lang="en">
<link rel="alternate" hreflang="en" href="https://www.example.com/en/guide">
<link rel="alternate" hreflang="fr" href="https://www.example.com/guide">
The lang attribute mainly serves browsers and screen readers (pronunciation, automatic translation); Google detects the language from the content. hreflang tags, on the other hand, tell it about the translated versions of a page, so it can show the right one to each user. Each version must list all the others, itself included.
In the <body>
7. <h1> to <h6>: structure
<h1>Convert metres to feet</h1>
<h2>The formula</h2>
<h2>Conversion table</h2>
<h3>Common ceiling heights</h3>
Headings divide the content: they help readers scan the page, screen readers navigate, and Google understand the sections. A clear H1 announcing the topic is good practice; Google has said that several H1s are not a problem and that imperfect heading order is not penalised. Do avoid using a heading just to make text bigger: that is CSS’s job.
8. <a href>: links Google can follow
<a href="/en/tools/converters/unit-converter#length">length converter</a>
Google discovers pages by following <a> links that have an href attribute. A button that changes page with JavaScript, without an href, does not count as a link. The link text (anchor) should say where it leads: “length converter” rather than “click here”. This is also the basis of good internal linking.
9. The image alt attribute
<img src="backpack-40l.webp" alt="Green 40-litre hiking backpack, seen from the back" width="800" height="600">
Alt text describes the image to people who cannot see it and helps Google, notably for Google Images. Describe what the image shows, without a list of keywords. A purely decorative image gets an empty alt="". Setting width and height prevents the page from jumping while it loads. The alt text generator can suggest a first description to review.
Tags to forget, or nearly
<meta name="keywords">: Google announced back in 2009 that it does not use it for ranking. No need to fill it in.<strong>,<b>,<em>,<i>: they serve reading (emphasis, nuance). Putting keywords in bold does not noticeably improve ranking.<meta name="author">,<meta name="revisit-after">: no effect on Google.
Going further: structured data
Structured data (in JSON-LD format) describes content explicitly: an article, a recipe, a product, an FAQ. It can make rich results possible, without guaranteeing them. The JSON-LD schema generator produces the code for common types.
A complete <head> template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Precise topic of the page | Brand</title>
<meta name="description" content="What the page lets people do or learn, in one or two sentences.">
<link rel="canonical" href="https://www.example.com/en/page">
<link rel="alternate" hreflang="en" href="https://www.example.com/en/page">
<link rel="alternate" hreflang="fr" href="https://www.example.com/page">
</head>
Try this template in the HTML viewer, or see the HTML5 cheat sheet for other tags.
Frequently asked questions
Can a page have several H1s?
Yes, Google handles it without difficulty. A single H1 is often clearer for readers, but it is not an SEO rule.
Is the meta description mandatory?
No. Without it, Google builds a snippet from the page text. A written description is still useful to control the message of important pages.
Do I need a canonical on every page?
It is a good habit: a canonical pointing to the page itself prevents address variants (parameters, capital letters) from being indexed in its place.