Creating Links and Navigation

Links are one of the most important elements of the web. They allow users to navigate between different pages and sections of your website. In this lesson, we'll cover how to create links and use them to build a basic navigation menu.

Basic Links

The <a> (anchor) tag is used to create a link. The `href` attribute specifies the destination URL:

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

This will create a clickable link that says "Visit Example". When clicked, it will take the user to the specified URL.

Linking to Other Pages on Your Site

You can also use the <a> tag to link to other pages within your website:

Proceed to Lesson 5