A word list is a small dictionary for one subject. This one gathers the words you meet most often while learning HTML and CSS, then sets each one beside its meaning in plain English. Skim it now, and come back whenever a term stops you.
How to use this template
Everything you can see lives in two files: index.html holds the words, and style.css controls how they look. Each term below is one definition entry. Copy a whole <div class="entry"> block, paste it, and type your own word and meaning. The comments in the stylesheet point to the section that sets each part.
A – C
- Attribute
- Extra information written inside an opening tag, such as the href in <a href="page.html">. Attributes always come in a name-and-value pair.
- Breakpoint
- The screen width at which your layout changes shape, usually written with an @media rule. Most pages need only one or two.
- Cascade
- The order a browser follows to settle a disagreement between two style rules. Later rules, and more specific ones, tend to win.
- Class
- A reusable label added to an element with class="..." so a single rule can style every element that carries it.
D – L
- Declaration
- A single property: value pair inside a CSS rule, such as color: #333;. A rule is just a list of these wrapped in curly braces.
- Element
- One piece of a page — a heading, a paragraph, a link — created by a pair of tags. Elements are the building blocks you arrange.
- Grid
- A CSS layout that drops items into rows and columns without using tables. This glossary uses a two-column grid for every entry.
- ID
- A unique name given to one element with id="...". Use it once per page, usually to mark a landmark such as the footer.
M – V
- Margin
- The empty space on the outside of an element, between it and its neighbours. Padding, by contrast, is the space just inside its border.
- Media query
- A block of CSS that applies only at certain screen sizes or media. It is how one page can suit both a phone and a wide desktop.
- Pseudo-element
- A part you can style with ::before or ::after that CSS draws for you, without adding it to the HTML.
- Responsive
- A page that rearranges itself to fit whatever screen it lands on, rather than forcing you to pinch and zoom.
- Selector
- The opening part of a CSS rule that says which elements to style, such as p, .note or #footer.
- Viewport
- The visible area of the page. A meta viewport tag in the head tells phones how to scale the page to that area.
- Whitespace
- The empty space between elements. On a good page it is left there on purpose, so the eye can rest and groups of ideas stay together.