AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
CSS Div and CSS Span |
DivDiv (short for division) divides the content into individual sections. Each section can then have its own formatting, as specified by the CSS. Div is a block-level container, meaning that there is a line feed after the </div> tag. For example, if we have the following CSS declaration:
The HTML code
gets displayed as
SpanSpan is similar to div in that they both divide the content into individual sections. The difference is that span goes into a finer level, so we can span to format a single character if needed. There is no line feed after the </span> tag. For example, if we have the following CSS declaration:
The HTML code
gets displayed as
|
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.