Find a course

HTML and CSS Basics glossary

27 terms you will meet in the free HTML and CSS Basics course, each explained in one or two sentences.

A

Accessibility
Designing and building pages so that people with disabilities, including those using screen readers or keyboards, can use them.
Alt text
A text description of an image in the alt attribute, read by screen readers and shown if the image fails to load.
Attribute
Extra information on an opening tag, written as name="value", such as href on a link or alt on an image.

B

Box model
The model in which every element is a rectangle made of content, padding, border and margin.
box-sizing
A CSS property that decides whether width includes padding and border (border-box) or only the content (content-box).

C

Cascade
The set of rules CSS uses to decide which declaration wins when several apply to the same element.
Class
An HTML attribute used to label elements so CSS can style a group of them, selected in CSS with a dot, as in .card.
CSS
Cascading Style Sheets: the language that controls how HTML content looks, including colors, fonts, spacing and layout.
CSS Grid
A CSS layout system for arranging items in rows and columns at the same time.

D

Declaration
A CSS property and value pair, such as color: navy;, inside a rule.
Developer tools
Tools built into browsers that let you inspect a page's HTML and CSS, test changes and find errors.

E

Element
A piece of an HTML page, usually made of an opening tag, content and a closing tag, such as a paragraph or a link.

F

Flexbox
A CSS layout system for arranging items in a row or column and distributing space between them.
fr unit
A CSS Grid unit meaning one fraction of the free space in the grid container.

H

HTML
HyperText Markup Language: the language that describes the structure and content of web pages.

I

Inheritance
The way some CSS properties, such as color and font, pass from a parent element to its children.

M

Margin
Space outside an element's border, separating it from other elements.
Media query
A CSS rule that applies styles only when a condition is true, such as the screen being at least 768 pixels wide.

P

Padding
Space inside an element, between its content and its border.

R

rem
A CSS unit equal to the root element's font size, which is 16 pixels by default in most browsers.
Responsive design
Building pages that adapt their layout and content to different screen sizes.

S

Selector
The part of a CSS rule that chooses which HTML elements the rule applies to.
Semantic HTML
Using elements that describe the meaning of content, such as nav, main, article and button, rather than generic div elements.
Specificity
A score based on the kinds of selectors in a rule; when rules conflict, the more specific selector wins.

T

Tag
A keyword in angle brackets, such as <p> or </p>, that marks the start or end of an element.

V

Viewport
The visible area of a web page in the browser window or on a device screen.
Void element
An HTML element with no content and no closing tag, such as img, br or input.

Put these terms to work

The HTML and CSS Basics course uses every one of these terms in short lessons with instant-feedback questions. It takes about 125 minutes and ends with a free certificate of completion.

Start the course Course overview