HTML vocabulary
A <dl> groups <dt> terms with their <dd> descriptions. Perfect for glossaries, metadata pairs, and any "term → explanation" structure that isn't a two-column table.
- Semantic HTML
- HTML that conveys meaning in addition to presentation.
<article>,<nav>, and<time>are semantic — they tell browsers, search engines, and assistive technology what each piece of content is, not just how it looks. - Viewport
- The visible area of the page in a browser window. On mobile, the viewport is typically smaller than the document. Use
<meta name="viewport" content="width=device-width">so mobile browsers render your page at its real width. - ARIA
- Accessible Rich Internet Applications — a set of attributes you add to HTML to improve accessibility when native HTML doesn't have a matching element. Examples include
aria-label,aria-expanded, andaria-current. - BFC (Block Formatting Context)
- A CSS rendering concept — an isolated region where floats and margins don't collapse with the outside. Flex containers, grid containers, and elements with
overflow: autoall establish a BFC. - Spec
- Multiple definitions! A single
<dt>can have multiple<dd>tags — the browser groups them all under one term.- 1. The official standard document maintained by the WHATWG.
- 2. Short for "specification" — also used informally to mean a feature request or design document.
Notice the last term — it has its own nested <dl> inside the <dd>. Definition lists nest cleanly because terms and descriptions are generic, no fixed parent-child relationship.