Content and media · Lesson 5 of 16
Links
Connect pages with <a>.
6 minutes3 games
Links use <a>, and where they go is in an attribute called href. Attributes are extra information written inside the opening tag: name="value".
HTML
<p>Visit <a href="https://www.seacode.tech">SeaCode</a> to learn more.</p> <p><a href="https://www.wikipedia.org" target="_blank">Wikipedia</a> opens in a new tab.</p> <p><a href="mailto:hello@example.com">Email us</a></p>
Complete the code
Complete the link so it goes to google.com.
<a ="https://google.com">Google</>
Quick question
You want a link to open in a new tab. What do you add?
Exercise
Make a link that says GitHub and goes to https://github.com.
HTML
Learn more from
Played 0 of 3 games
Sign in to save your progress and earn XP.