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?

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

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

  margin:10px; {

1 Answer

Steven Parker
Steven Parker
171,047 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.