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

whats a css selector?

what is a css selector?

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

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

  </body>
</html>
styles.css
{
  a.social-links 
  padding:15px; 
  margin:10px; {
}

1 Answer

Steven Parker
Steven Parker
163,562 Points

The selector is the part of the rule that identifies which element(s) the settings inside the rule will apply to. It should be placed in front of the open brace.

You have a correct selector here, but it is inside the braces instead of in front. Notice that the syntax highlighting detected the issue and colored it red in the code above.

Also, it looks like you have a stray extra open brace after the "margin" setting.

Fix those issues and you should pass the task.