---
name: html5-reference
description: Use when authoring, reviewing, or validating HTML markup — choosing the right element, deciding what may nest inside what, writing forms/inputs, adding accessible semantics, or checking a document against the WHATWG living standard. Covers elements, content categories, global attributes, forms, and HTML-defined APIs.
---
# HTML5 Reference (WHATWG Living Standard)
## Overview
HTML5 is not "a set of tags you can put anywhere." The [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/) defines, for every element, **which content category it belongs to**, **where it is allowed to appear**, and **what it is allowed to contain**. Correct HTML is markup that satisfies these *content model* rules.
**Core principle:** Pick the element whose semantics match the content's meaning, then verify the nesting is valid per the content model. Meaning first, appearance never (styling is CSS's job).
This skill is the authoritative-but-condensed reference. It is version-current with the spec (living standard) — when in doubt, the linked multipage spec is the source of truth.
## When to Use
- Deciding **which element** is correct (`` vs `
` vs ``; `` vs ``; `
` vs ``).
- Checking whether a nesting is **valid** ("can a `