Pergunta de entrevista da empresa Totality Corp

What are the differences between block and inline elements in HTML?

Resposta da entrevista

Sigiloso

15 de mai. de 2024

Block elements take up the full width of their container, while inline elements only take up as much space as their content. Inline elements cannot have their height and width specified, but they can have margin and padding applied only horizontally (left and right) and not vertically (top and bottom).