Skip to content · ⁨Passer au contenu⁩

Showing and hiding (display) · ⁨Affichage et masquage (display)⁩

English

How boxes flow

  • Some elements are block: they stack on top of each other and fill the width — <div>, <p>, <h1>.
  • Some are inline: they sit side by side, taking only as much room as they need — <span>, <a>, <strong>.
  • display lets you change which way an element behaves.

Français

Comment les boîtes s'écoulent

  • Certains éléments sont block (de bloc) : ils s'empilent les uns sur les autres et remplissent la largeur — <div>, <p>, <h1>.
  • Certains sont inline (en ligne) : ils sont côte à côte, ne prenant que l'espace nécessaire — <span>, <a>, <strong>.
  • display vous permet de changer la façon dont un élément se comporte.

Les éléments block s'empilent sur leurs propres lignes, les éléments inline sont côte à côte, none cache

Handout · ⁨Fiche de cours⁩

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP