Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #difference #span #div
ADD COMMENT
Topic
Name
1+3 =