HTML Tags

SEO, AEO & GEO Glossary

HTML tags are the markup elements that structure a web page. For SEO, the key ones are title, meta description, headings, links, images, canonical and robots.

What are HTML Tags?

HTML tags are the markup elements that define the structure and meaning of a web page, written as names in angle brackets such as <title>, <h1>, <p>, <a> and <img>. Browsers use them to render content, assistive technologies use them to navigate it, and search engines use them to understand and index it.

Hundreds of HTML elements exist, but only a small set has a direct effect on how pages are crawled, indexed and displayed in search results.

How it works

Search engines fetch the HTML (and often render JavaScript), then read specific elements:

TagWhereSEO role
<title>headMain source for the search result title link
<meta name="description">headOften used for the result snippet
<link rel="canonical">headPreferred URL among duplicates
<meta name="robots">headnoindex, nofollow, snippet controls
<link rel="alternate" hreflang>headLanguage and region versions
<h1> to <h6>bodySection structure and topics
<a href>bodyCrawlable links and anchor text
<img alt>bodyImage understanding and accessibility
<script type="application/ld+json">head/bodyStructured data

Google only reliably follows links in <a> elements with an href attribute. Links created with JavaScript click handlers on other elements may not be crawled.

Examples

  • A SaaS site’s navigation uses <div onclick> elements instead of <a href>. Google cannot discover its feature pages through navigation. Switching to real links fixes discovery.
  • A security blog has the same <title> on every post (“Blog | Company”). Unique, descriptive titles improve click-through from search.
  • A product page accidentally ships <meta name="robots" content="noindex"> from staging and drops out of Google.

Best practices

  • Write a unique <title> and meta description for every indexable page.
  • Use semantic elements (<main>, <article>, <nav>, headings) for structure.
  • Make all important links real <a href> elements.
  • Add descriptive alt text to meaningful images.
  • Keep critical tags in the server-rendered HTML rather than injecting them late with JavaScript.

Common mistakes

  • Relying on meta keywords, which Google ignores.
  • Placing invalid elements inside <head>, which can make Google stop reading head tags early.
  • Shipping conflicting canonical and robots directives.

AI crawlers such as GPTBot and PerplexityBot often fetch raw HTML and may not execute JavaScript. Content, headings and links present in the server-rendered HTML are the safest way to make sure AI systems can read and quote your pages. See AI crawlers.

Sources

Frequently asked questions

Which HTML tags matter most for SEO?

The title element, meta description, heading elements (H1 to H6), anchor links with href, image alt attributes, the canonical link element, the robots meta tag and hreflang annotations. Structured data in JSON-LD script tags also matters for rich results. Semantic elements like main, article and nav help clarify page structure.

Does Google use the meta keywords tag?

No. Google has said for many years that it does not use the meta keywords tag in web search ranking. Including it does no harm, but it also does nothing, and it can reveal your target keywords to competitors. Focus on the title, headings and content instead.

Do HTML tags need to be valid for SEO?

Google does not require perfectly valid HTML and handles many errors. However, serious problems such as unclosed tags in the head, links without href attributes, or content injected only after user interaction can stop Google from reading important elements. Clean, semantic HTML reduces that risk.

Technical SEOOn-Page SEOHTML

Do not let AI keep
recommending someone else

Start your 7-day free trial and get your AI Visibility Score in about a minute. See exactly where you stand, where competitors are beating you, and the ranked fixes to get into the answer. Cancel anytime before the trial ends.

7-day free trial. Cancel anytime before it ends. Trusted by 500+ B2B SaaS teams.

Partnered with
Powered by