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

HTML One Solution

Whats the use of <Span> tag inside <Footer> tag .before <span> there is <p> tag which is block level.

<footer> <!-- 5. Footer Content --> <p>This site was built and maintained by hedgehog lovers like you.</p> <span>Ā© 2019 Hedgehog Headquarters</span> </footer>

2 Answers

You can think of spans as SMALL INNER SECTIONS. Mainly for what Steven Parker said. If you have a small section of a paragraph (or any other element) that needs specific styling, but not the entire paragraph, you can wrap that section inside a span.

<h1>THIS IS MY <span class="my-class">STORY</span></h1>

The word story and only that word will have the CSS style of my-class applied to it.

Steven Parker
Steven Parker
229,783 Points

One potential use of the span element is to provide a target for a CSS selector if you wanted to add any styling to the text it contains.