Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJosiah Ewulomi
Courses Plus Student 1,592 Pointsdoes any one know how to solve this problem ?
does any one know how to solve this problem ?
<!doctype html>
<html>
<head>
<title>List Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a class="#social links"Follow me on Twitter!</a>
<a class="#social links"Send me an Email!</a>
</body>
</html>
2 Answers
Steven Parker
231,236 PointsIt looks like you mistyped the class name.
The challenge asked you to add the class "social-links
" (with a hyphen), but you wrote "#social links
" (with a "#" and a space) instead.
It also appears that you erased the href attributes and the closing ">" symbol of the tags.
Try again, and be careful not to remove anything as you add the class attributes with the correct name.
Matthew Tran
16,343 PointsTo assign a class, it only has to go inside the quotes. It does not need the # symbol. Also, they should be one string without spaces, so you would need a dash or underscore.
Also, your anchor element isn't being closed properly. Typically, links look like this: <a></a> or <a href="www.facebook.com">Follow Me on Facebook</a>
Your code should look as below:
<a class="social-links">Follow me on Twitter!</a>
<a class="social-links">Send me an Email!</a>
Steven Parker
231,236 PointsActually, no. That would still be removing the provided attributes. And it must be a dash in the name for the challenge to accept it.