The display property
A CSS property that controls how an element participates in layout. Common values: block, inline, inline-block, none and flex.
Understanding The display property in HTML & CSS
What it does: By default <p> is already block, but display: block can be set explicitly. The paragraph starts on its own line and spans the full container. Setting display: flex on nav makes its children (typically <a> or <li> elements) flex items, enabling flexible alignment and sizing. display: none removes the element from layout and leaves no space. visibility: hidden keeps the space but makes it invisible. display: inline-block flows within text like inline, but unlike plain inline, it respects width, height and all padding/margin values. display: flex is the correct value. 'flexbox' is not a valid CSS display value. 'inline block' with a space is not a valid CSS value. The hyphenated form inline-block is required.
Common mistakes: CSS declarations require a colon. It should be display: block; not display block;. The value for inline-block must be hyphenated: display: inline-block; not display: inline block; with a space.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 43–52) and word search (Modules 43–63).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
displayFill in the Blanks
Spot the Error
Student with a class code? Join your class →