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

Kim Dallas
Kim Dallas
11,461 Points

I'm having a hard time with class statements

i'm having a hard time with class statements. I've tried all the techniques. please help

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

Tommy Binkley
Tommy Binkley
17,999 Points

Step 1

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

Step 2

Write this into your CSS

.social-links {

}

Step 3

.social-links { padding: 15px; margin: 10px; }