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 How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

How do I remove underlines from all the links on a page?

I am trying to follow along here and it was good until I got to this section on CSS. I am getting lost in the terminology for the code terminology. Can someone please tell me how to correctly write this?

3 Answers

Erik McClintock
Erik McClintock
45,783 Points

Theresa,

If you're confused, it's best to go back and rewatch the video, taking notes and coding along with the teachers until you get a stronger grasp on the concepts. In addition, you can hop on Google and do some research on terminology, etc.

For the first task of this challenge, you'll want to use an element selector to target all of the anchors (i.e. links) on the page, and then set their text-decoration property to be "none".

Erik

Thank you Erik.

Hey Theresa, Erik is 100% spot on. Us on the forum love to help, but it's better to re-watch the videos to get the answer on your own, but just this one time!

Links are created using the anchor tag, which is <a href="">Link</a>, so to target all links, using CSS you would target the anchor selector, and set the text-decoration property to none, it'd look like this.

a {
 text-decoration:none;
}

Good luck!

Thank you, Sylinic. The example helped me. I am going to probably have to ask a few more questions though. I cant even remember which part to re-watch....lol

Oh you can ask as many as you want, I just said that as not to RELY on the forum, it's helpful but ultimately a crutch. But you can ask as many questions as you'd like, I'd be happy to help.