Monday, 22 July 2013

What is the difference between Span and div ?

A div is a block-level element whereas a span is an inline element.

example :


<div id="wrapp">
    <p>This is <span class="wrapp_heading">justeffects</span></p>
</div>