WeCodeAcademy

Block and Inline Elements

Elements are either block (start on a new line and take the full width, like <div>, <p>, <h1>) or inline (flow inside a line, like <span>, <a>, <strong>).

Examplehtml
Open in editor »

<div> and <span> mean nothing by themselves. They are generic containers you group and style with CSS.

Quick check

Which element is inline?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.