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 trialJavid Beykzadeh
5,863 PointsRemove underline
What am I doing wrong?
<a href="http://www.google.com/" style="text-decoration:none">Google</a>
2 Answers
Rebecca Vonada
5,274 PointsThis isn't CSS, it's inline HTML, so it should be in your HTML file, not your stylesheet. Using it inline it should be:
<a href="http://www.google.com" style="text-decoration: none;">Google</a>
In your stylesheet it should look like:
a {
text-decoration: none;
}
Andrew Moore
21,076 PointsHi Javid,
I think the problem is you've missed a semicolon at the end of your style attribute.
<a href="http://www.google.com/" style="text-decoration:none;">Google</a>
Javid Beykzadeh
5,863 PointsJavid Beykzadeh
5,863 PointsI am trying to do this module.
Remove the underlines from all the links on the page.
It is blank, so will my example not work?
Rebecca Vonada
5,274 PointsRebecca Vonada
5,274 PointsCan you post your full index.html and your full main.css? Please make sure to use the forum markup so that your code shows correctly. You can click "Markdown Cheatsheet" below the "Add A Comment" box for help.