Welcome to HTML Links & Navigation! 🔗

Understanding Links and Navigation in HTML

Links are used to connect different pages or resources. HTML provides the <a> tag to create hyperlinks. The href attribute is used to specify the URL of the page the link points to.

Example of a Link

        <a href="https://www.example.com">Go to Example</a>
    

Example of Navigation Links

        <nav>
            <a href="home.html">Home</a>
            <a href="about.html">About</a>
            <a href="contact.html">Contact</a>
        </nav>
    

Try It Yourself

HTML Links and Navigation Quiz 🎯

1. What tag is used to create a link in HTML?

<link>
<a>
<href>

2. Which attribute is used to specify the link's destination?

target
href
src

3. How do you open a link in a new tab?

target="new"
target="_blank"
new-tab

4. Which tag is used to define navigation links?

<nav>
<links>
<a>

5. How would you create a hyperlink to an external website?

<a href="www.website.com">Website</a>
<a href="https://www.website.com">Website</a>
<link href="https://www.website.com">Website</link>