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 Adding a Style to several Elements using Class

Introduction to HTML and CSS Add a class called "social-links" to each anchor tag.

index.html
<!doctype html>
<html>
  <head>
    <title>List Example</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>

    <a href="#">Follow me on Twitter!</a>
    <a href="#">Send me an Email!</a>

  </body>
</html>
styles.css

1 Answer

kevin curtis
kevin curtis
15,287 Points

Hi Julia,

So it's just asking you to add a class to each <a> tag. something like this:

<a href="#" class="the class name goes here">Follow me on Twitter!</a>

In this case the class name is social-links

Mod Edit: Changed comment to answer so it may be voted on or marked as best. Thank you for participating in our community!

rydavim
rydavim
18,813 Points

Hey! You've given a couple of good answers on our community forums lately, and we want to make sure you're recognized for your helpfulness. When posting answers like this, make sure you use the Add an Answer box at the bottom of the page.

Comments are useful for asking questions or clarifications, but if you think you have a good explanation, hint, or helpful solution it's better to post it as an answer so community members can vote on your post and the student can mark it as best if appropriate.

Thanks so much for your encouraging participation on this forum! Happy coding!