← BYTES
HTML·Intermediate·Ref: 2.2.2

What is the key difference between block-level and inline elements in HTML?

Have a question about this video? Mention reference 2.2.2 when you contact us.

a.There is no meaningful difference in modern HTML
b.Inline elements cannot contain any text
c.Block-level elements start on a new line and take up the full available width by default; inline elements flow within the surrounding text and only take up as much width as their content needs
d.Block-level elements cannot be nested inside other elements
<div>, <p>, <h1>-<h6>, and <ul> are block-level by default (stacking vertically, full width); <span>, <a>, <strong>, and <img> are inline by default (sitting within a line of running text) -- though CSS's display property can override either default.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES222#HTML