</>HTML & CSS

HTML & CSS glossary – key terms explained

ARIA

Accessible Rich Internet Applications: attributes (role, aria-*) that convey meaning and state to screen readers where HTML is not enough.

Box model

Every element is a box made of content, padding, border and margin; box-sizing determines what width refers to.

Cascade

The set of rules that decides which one wins when several CSS rules match: origin, specificity, order.

CSS Grid

A layout model for two-dimensional grids of rows and columns, including named areas.

Custom property

A CSS variable (--name), read with var(--name); it is inherited and can be changed at runtime.

DOM

Document Object Model: the object tree that the browser builds from the HTML document and that CSS and JavaScript address.

Element / tag / attribute

An element consists of a start tag, content and an end tag; attributes (href, class) provide additional information in the start tag.

Flexbox

A layout model for one-dimensional arrangement (row or column) with flexible size distribution and alignment.

Inheritance

Some CSS properties (e.g. color, font-family) are passed on automatically to child elements.

Media query

An @media rule that applies CSS only when conditions (width, color scheme, motion …) are met.

Progressive enhancement

First build a working base for all browsers, then add modern features as an improvement.

Pseudo-class / pseudo-element

:hover, :nth-child() select states/positions; ::before, ::after create or select parts of an element.

Reflow / repaint

Reflow = recalculating the layout (expensive), repaint = redrawing; transform and opacity avoid reflow.

Responsive design

Design that adapts fluidly to screen sizes and devices (fluid sizes, media/container queries).

Selector

An expression that determines which elements a CSS rule applies to (p, .klasse, #id, a:hover).

Semantic HTML

Choosing elements by meaning (<nav>, <article>, <button>), not by appearance – important for accessibility and SEO.

Specificity

The weighting of a selector (ID > class > element); higher specificity wins regardless of order.

Stacking context

A separate stacking area for z-index (created e.g. by position + z-index, transform, opacity < 1).

Viewport

The visible area of the page in the browser window; with the meta tag you control its width on smartphones.

WCAG

Web Content Accessibility Guidelines: the international accessibility standard with levels A, AA and AAA.