What is the difference between <div> and <span> tag?

S.no Span div
1. Gives output with "display: inline" Gives output with "display: block"
2. In-line element Block level element
3. Used to add style to text Used to create CSS layouts

Suggest An Answer

No suggestions avaliable!

Latest post from HTML5 Interview Questions

Ask Question