What Is The Difference Between Span And Div

what is the difference between span and div
* div – Block Element
-> 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> </div>

* span – Inline Element
-> An inline element does not start onanew line and only takes up as
much width as necessary.
<span> </span>

 

Leave a Comment