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<!--
2 Span is used to group inline elements.
3 You can apply specific attributes to the span element
4 that will only be applied to the content within.
5 Below is a simple example -->
6<p>Black text <span style="color:#ff0000">Red Text </span>Back to Black</p>
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>