Wednesday, August 5, 2009

SPAN tag.

* The DIV tag is a block level element for adding structure, whereas the SPAN tag is an in-line level element for adding structure.
* We cannot place a block level element within an in-line level element.
* For example, wrapping a span tag around some words within a paragraph of text with the attribute class="red" inside the tag will mean only those words will change to the formatting you set in the CSS style.
* The span tag not only formats text but also a large variety of other elements.

No comments:

Post a Comment