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>
->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>
2 Likes