Skip to content

Glossary: HTML & CSS Basics

div and span

Also written: div, span

Generic containers with no meaning, used for styling. `div` is a block box; `span` is its inline twin for a few words inside a line.

Where the book teaches it

Related terms

Semantic elementBlock elementInline element