Inline vs Block

Block elements Inline elements
Takes up the full width available Takes up only necessary width
Always starts from new line Does not start from new line
Example : Example:
<h1> <p> <div> <a> <img> <span>

inline-block-image.jpg


<div> Element

<div>
	<a href="<https://www.google.com>" target="_blank">Google</a>
	<a href="<https://www.facebook.com>" target="_blank">Facebook</a>
</div>
<a href="<https://www.instagram.com>" target="_blank">Instagram</a>

<span> Element

<span>
	<a href="<https://www.google.com>" target="_blank">Google</a>
	<a href="<https://www.facebook.com>" target="_blank">Facebook</a>
</span>
<a href="<https://www.instagram.com>" target="_blank">Instagram</a>