Headings: [Skip]

Web-Design Tutorials by Dr Sam

CSS, the Cascade

Menu [Skip]

Inline Styles

The Span Tag-Pair

We can use the <span> </span> tag-pair with inline styles to enclose a part of a larger element ~ a part (a child) of a parent element. We can change the colors and fonts and other styles of the part, like this inside the following paragraph. Be sure to read the following paragraph:

This is a paragraph enclosed within its <p></p> tag-pair. It is the parent element. Hello. I am a part of the paragraph. I am the child. I am held within my own <span></span> tag-pair, and I have my very own styles. Yes, the span is nested within the parent element. The nested span has its own styles.