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 trial
Aleem MohamedCourses Plus Student 7,011 Points
Unknown Anchor Attribute
The following is a snippet that Guil uses for anchor elements in his HTML...
<a link href="#">Link 1</a>
What does that "link" attribute do? I can't for the life of me remember if that was covered. I've looked at W3Schools but their anchor reference page doesn't list an attribute "link". Even my IDE (WebMatrix) says "unknown attribute 'link'". Can someone enlighten me?
Actually, I don't think that's proper use and it does't validate as HTML5 since the
link element is only allowed in the
head element. I'm thinking it might also require the
rel attribute. Some attributes of this element are not supported in HTML5.