---
title: "What is HTML?"
description: "HTML is the code that structures a web page: headings, links, images and the head. Why search engines and AI crawlers depend on what is in your HTML."
url: https://ursy.com/wiki/html/
updated: 2026-11-26T15:41:49+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/html/
---

# What is HTML?

> HTML is the code that structures a web page: headings, links, images and the head. Why search engines and AI crawlers depend on what is in your HTML.

**HTML (HyperText Markup Language) is the code that gives every web page its structure and meaning: it marks which text is a heading, a paragraph, a link, a list, an image or a table, so browsers, [search engines](https://ursy.com/wiki/search-engine/) and AI systems know what each part is.** Styling comes from [CSS](https://ursy.com/wiki/css/) and behaviour from JavaScript, but HTML is the base layer that every crawler reads first.

## What is HTML? {#what-is-html}

MDN’s [HTML reference](https://developer.mozilla.org/en-US/docs/Web/HTML) calls it the most basic building block of the Web, which defines the meaning and structure of web content. The standard itself, the WHATWG [HTML Living Standard](https://html.spec.whatwg.org/multipage/introduction.html), opens by calling HTML the World Wide Web’s core markup language. “Hypertext” means text with links that join pages together, within one site or between sites.

HTML is made of elements, each written with tags inside angle brackets. MDN notes that tag names are not case-sensitive, but lower case is the convention. A tiny page looks like this:

```
<!DOCTYPE html>
<html lang="en-GB">
<head>
  <title>Oak dining tables made in Devon</title>
  <meta name="description" content="Solid oak tables, made to order.">
</head>
<body>
  <h1>Oak dining tables</h1>
  <p>Each table is made to order in 6 weeks.</p>
  <a href="https://example.co.uk/delivery/">Delivery costs</a>
</body>
</html>
```

## Who decides what HTML is? {#who-decides-what-html-is}

The WHATWG standard explains the history. Apple, Mozilla and Opera set up the WHATWG in 2004. The W3C joined the work in 2007. In 2011 the WHATWG chose to keep HTML as a Living Standard, updated all the time rather than frozen at a version number. In 2019 the 2 groups agreed to work on one single version of HTML.

## Why does it matter for search? {#why-does-it-matter-for-search}

Search engines read your HTML to learn what a page is about and how it links to others. The parts that matter most:

| Part | What it tells a search engine |
| --- | --- |
| <title> | The page name, often used as the [title link](https://ursy.com/wiki/title-tag/) in results |
| <meta name=”description”> | A suggested [snippet](https://ursy.com/wiki/meta-description/) |
| <link rel=”canonical”> | The preferred address, see [canonical tag](https://ursy.com/wiki/canonical-tag/) |
| <meta name=”robots”> | Rules such as [noindex](https://ursy.com/wiki/noindex/) |
| <h1> to <h6> | The outline of the content |
| <a href> | Links to follow, with their [anchor text](https://ursy.com/wiki/anchor-text/) |
| <img alt> | What an image shows, see [alt text](https://ursy.com/wiki/alt-text/) |

Two rules from [Google](https://ursy.com/wiki/google/) matter here. First, Google’s [JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) say it only follows links that are a elements with an href attribute. A button that changes page with a script is not a link to Google. Second, Google’s page on [valid page metadata](https://developers.google.com/search/docs/crawling-indexing/valid-page-metadata) lists the elements allowed in the head: title, meta, link, script, style, base, noscript and template. If an invalid element such as an img or [iframe](https://ursy.com/wiki/iframe/) appears in the head, Google treats that as the end of the head and ignores what comes after it. A canonical tag placed below a stray image can be lost.

Size matters too. Google’s [Googlebot page](https://developers.google.com/search/docs/crawling-indexing/googlebot) says it fetches the first 2MB of a supported file, measured uncompressed, and indexes only what it downloaded. Pages stuffed with inline code can push real content past that point.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

Not every crawler runs JavaScript, and many [AI crawlers](https://ursy.com/wiki/ai-crawler/) are simple fetchers. Google’s own guide says [server-side rendering](https://ursy.com/wiki/server-side-rendering/) or pre-rendering is still a good idea because not all [bots](https://ursy.com/wiki/bot-web-robot/) can run JavaScript. If your prices, opening times or product details only appear after a script runs, some AI systems never see them. Clear headings, short paragraphs, real lists and real tables make a page easy to split into passages and quote. A plain [llms.txt](https://ursy.com/wiki/llms-txt/) file or a markdown copy can help, but the HTML page is still the main source.

## How does a browser use it? {#how-does-a-browser-use-it}

1. It requests the address over [HTTP](https://ursy.com/wiki/http/) and receives the HTML.
2. It reads the head: title, metadata, links to CSS and scripts.
3. It builds the page from the body, element by element.
4. It fetches images and other files, and runs any JavaScript.

Google goes through similar steps. Its guide describes 3 phases: [crawling](https://ursy.com/wiki/crawling/), [rendering](https://ursy.com/wiki/rendering/) and indexing. Pages can wait in a queue before rendering, which is one more reason to put key content in the first HTML. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/).

## Common mistakes {#common-mistakes}

- **Headings for looks.**  Using an h2 because it is big, not because it starts a section. Skipped or repeated h1s confuse the outline.
- **Divs everywhere.**  A list written as loose divs loses its meaning. Use ul, ol and table where they fit.
- **Fake links.**  Clickable spans or buttons instead of a elements with href.
- **Junk in the head.**  A tracking image or iframe high in the head hides tags below it from Google.
- **Missing alt text.**  This hurts both [web accessibility](https://ursy.com/wiki/web-accessibility/) and image search.
- **Content only in scripts.**  Key facts that appear only after JavaScript runs.
- **Bloat.**  Huge inline styles and scripts that slow [page speed](https://ursy.com/wiki/page-speed/) and use up the fetch limit.

## A worked example {#a-worked-example}

A furniture shop’s product page looks fine but has 3 hidden problems in its HTML:

| Found | Effect | Fix |
| --- | --- | --- |
| A 1 by 1 tracking image at the top of the head | Google ignores the canonical tag below it | Move the image into the body |
| Price filled in by a script | Some AI crawlers see no price | Print the price in the HTML |
| “Next” button with no href | Google cannot follow it to page 2 | Use a real a element with href |

## How to check it {#how-to-check-it}

1. Read the title, description, robots and canonical tags with our [Meta Tag Checker](https://ursy.com/meta-tag-checker/). Our [Canonical Checker](https://ursy.com/canonical-checker/) tests the canonical in depth.
2. Check the heading outline with the [Heading Checker](https://ursy.com/heading-checker/). On WordPress, the [multiple H1 fix](https://ursy.com/wordpress-plugins/multiple-h1-fix/) plugin tidies repeated h1s.
3. Find [broken links](https://ursy.com/wiki/broken-link/) with our [Broken Link Checker](https://ursy.com/broken-link-checker/), and test structured data in the HTML with the [Schema Markup Checker](https://ursy.com/schema-checker/).
4. See what a crawler gets without scripts using our [AI Readiness Checker](https://ursy.com/ai-readiness-checker/). The [JavaScript SEO Checker](https://ursy.com/javascript-seo-checker/) compares raw and rendered HTML.
5. Check the markup itself with the W3C’s free [Markup Validation Service](https://validator.w3.org/).
6. Tidy code with our [HTML formatter](https://ursy.com/webmaster-tools/html-formatter/), escape symbols with the [HTML entities converter](https://ursy.com/webmaster-tools/html-entities-converter/), or turn notes into HTML with the [Markdown to HTML converter](https://ursy.com/webmaster-tools/markdown-html-converter/).

## Questions {#questions}

### Does invalid HTML stop a page ranking? {#does-invalid-html-stop-a-page-ranking}

The errors to fix first are those that break the head, hide links or hide content.

### Is HTML a programming language? {#is-html-a-programming-language}

No. It is a markup language: it labels content rather than running logic.

### Do I need to know HTML to run a website? {#do-i-need-to-know-html-to-run-a-website}

Not to write it by hand, but knowing the main tags helps you spot problems. Start with [on-page SEO](https://ursy.com/wiki/on-page-seo/) and [technical SEO](https://ursy.com/wiki/technical-seo/).

## Related words {#related-words}

- [Meta tag](https://ursy.com/wiki/meta-tag/)
- [JavaScript SEO](https://ursy.com/wiki/javascript-seo/)
- [Schema markup](https://ursy.com/wiki/schema-markup/)
- [URL](https://ursy.com/wiki/url/)
- [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/)

## Sources {#sources}

- [WHATWG: HTML Living Standard, Introduction](https://html.spec.whatwg.org/multipage/introduction.html), checked 24 November 2026
- [MDN: HTML (HyperText Markup Language)](https://developer.mozilla.org/en-US/docs/Web/HTML), checked 24 November 2026
- [Google Search Central: Use valid HTML to specify page metadata](https://developers.google.com/search/docs/crawling-indexing/valid-page-metadata), checked 24 November 2026
- [Google Search Central: JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics), checked 24 November 2026
- [Google Search Central: Googlebot](https://developers.google.com/search/docs/crawling-indexing/googlebot), checked 24 November 2026
- [W3C: Markup Validation Service](https://validator.w3.org/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
