Lesson 10: HTML Links

Creating Hyperlinks

The <a> (anchor) tag defines hyperlinks that allow visitors to navigate between web pages, external websites, or specific page sections.


<a href="https://www.w3schools.com">Visit W3Schools</a>


Why&How to use:

Links connect the web together. You use the href attribute to specify the destination URL and the target attribute to control how the link opens.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Links</title>
</head>
<body>
<h1>Navigation Links</h1>
<p><a href="https://example.com" target="_blank">Open Example in a new tab</a></p>
</body>
</html>