About elements

Can someone explain Block Level Elements and Inline Elements?

1 Like

->A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).

<div>Hello World</div>

Try it Yourself »

->An inline element does not start on a new line and it only takes up as much width as necessary.
Hello World

<span>Hello World</span>

Try it Yourself »

2 Likes