HTML Introduction to HTML and CSS Make It Beautiful With CSS Adding a Style to several Elements using Class

Lynn Collins
Lynn Collins
3,182 Points

What am I doing wrong now?

I keep screwing this up....need help fast please!

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

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

  </body>
</html>
styles.css

2 Answers

Connor Powers
Connor Powers
1,247 Points

It looks like have a copy/paste error! Review you're first anchor tag after "Follow me on twitter!"

Jamie Reardon
Jamie Reardon
Front End Web Development Techdegree Student 6,535 Points

Hi, you need to add the class to both anchor elements like this:

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

Your syntax was incorrect, you only defined the social-links class to the first anchor element, you also had two closing anchor tags on the first line.