Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations Selectors Type Selectors

2 Answers

Spencer Merritt
Spencer Merritt
10,615 Points

The Span tag is usually used to modify a specific item within another element. For example change color with in a sentence.

<h1> This sentence has the color black but I want 
<span> this part to be green </span>
 I hope this makes sense. </h1>
h1 {color:black;}
span {color:green;}
Dylan Grey Aksomitas
PLUS
Dylan Grey Aksomitas
Courses Plus Student 15,083 Points

I like to think of span tags as the inline equivalent to a div element .