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 trialJoyce Magondu
237 PointsUsing the link rel and connecting with h ref
Wondering why you used "h ref" instead of using " a href" when using the link ref ?
1 Answer
Mitchell Springer
2,576 Pointshref is used just to indicate that a url is going to be connected to something else. Normally that is the anchor (a) tag and thus creates a hyperlink. You can use href with other things such as the area tag to link certain areas of the page to a url. In the case with the link tag, you are linking your html file with the css file by using href to tell the html file the url of the css file.
This is my understanding of href. Hopefully I'm not wrong and this makes sense.