1. Span
2. The
3. Without any style attributes, the
element is in-line and usually used for a small chunk of in-line HTML whereas <div>
(division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.2. The
DIV
element includes a paragraph break.means <div> acts a lot like <p>
, by placing newlines before and after the division.3. Without any style attributes, the
SPAN
element won’t change the enclosed items at all.The primary difference between the SPAN
and DIV
elements is that SPAN
doesn’t do any formatting of it’s own. The SPAN
element simply tells the browser to apply the style rules to whatever is within the SPAN
.
No comments:
Post a Comment