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
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
zakariya mustafe
70 Points0 Answers
-
James Kinser
Front End Web Development Techdegree Student 895 Points1 Answer
-
Levi Goldzweig
2,542 Points1 Answer
View all discussions for this video
Related 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