--- title: "Semantic HTML" description: "How ASW styles plain HTML elements without class names — typography, links, tables, forms, and interactive elements." type: docs weight: 70 date: 2026-04-09 tags: ["semantic-html", "css", "reference"] ai-disclosure: "generated" ai-model: "claude-sonnet-4-5" ai-provider: "Anthropic" --- ASW's `02-semantic.css` layer styles native HTML elements directly. Write valid semantic HTML; it looks right without adding any attributes or classes. --- ## Typography ### Headings All six heading levels are styled with distinct sizes, weights, and colours drawn from ASW tokens. ```html
`, `
Regular paragraph text.
Bold and italic inline.
Highlighted text using the native mark element.
Removed and inserted content.
``` Left border in `var(--border)`. Footer text is muted. ### Inline elements | Element | Rendering | |---------|-----------| | ``, `` | Bolder weight | | `` | Yellow highlight (`var(--mark-bg)`) | | `The thread continues even when the needle changes.