1The HTML <span> element is a generic inline container for
2pieces of content, which does not inherently represent anything.
3It is mostly used for grouping and styling bits of content.
4<span> is very much like a <div> element, but <div> is a
5block-level element whereas a <span> is an inline element.
1
2The <span> tag is an inline container used to mark up a part of a text,
3 or a part of a document. The <span> tag is easily styled by CSS or manipulated
4 with JavaScript using the class or id attribute. The <span> tag is much like
5the <div> element, but <div> is a block-level element and <span> is an inline
6element. :)
1//an example of an "out of context" way to change color of a text:
2<span style="color: green"></span>