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 Introduction to HTML and CSS (2016) Make It Beautiful With CSS Select and Style by Element

CSS text-decoration: none; on line 17. Why was this stated for the anchor tag?

Is this required for styling any or all anchor tags or was this done more to expose us to additional style instructions?

I failed to remember the hyperlink would automatically feature an underline. Thanks for the reply!

1 Answer

Teacher Russell
Teacher Russell
16,873 Points

Setting text-decoration to 'none' will remove the default underline from the text between the anchor tags. Other options can be : underline, :line-through....etc Is that what you're asking? It is a styling option.

Moderator Edit: moved reply to Answer section