HTML Introduction to HTML and CSS 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.

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

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


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!

18,754 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!