Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Delve into the world of HTML links, connecting web pages, and exploring attributes. Learn to create internal and external links while discovering the use of attributes like "href" and "target."
Quick Tip
Did you know there's a simple shortcut to link back to the top of a page? Instead of setting an anchor tag's (<a>
) href
value to an id
, you can just set it to #
like so:
<a href="#">Back to Top</a>
Clicking this anchor tag will also link you to the top of the page.
Absolute & Relative Link Examples
Linking to an absolute URL:
<a href="https://www.teamtreehouse.com">Team Treehouse</a>
Linking to a relative URL:
<a href="index.html">Back to Home</a>
Reference
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up