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.
- 语义化 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. - 视口
- 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(块级格式化上下文)
- 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(规范)
- 多义词! A single
<dt>can have multiple<dd>tags — the browser groups them all under one term.- 1. WHATWG 维护的官方标准文档。
- 2. "specification" 的缩写——也泛指功能需求文档或设计文档。
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.