Question d’entretien chez Deloitte

What is the difference between display: block; and display: inline;

Réponse à la question d'entretien

Utilisateur anonyme

16 nov. 2018

display: block means that the element is displayed as a block, as paragraphs. a line break happens after the element, so a block element doesn’t sit next to other element. display: inline means that the element is displayed inline, inside the current block on the same line.