Tutorials

HTML Tutorial

All Tutorials Learning Tools Login

HTML Tutorial · Chapter 5 of 9

HTML Links

Connect pages with anchor tags.

Use <a href="..."> to create links.

Relative links point to files in the same project, such as about.html.

Links sample Try it Yourself »
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Links</title>
</head>
<body>
    <h1>Navigation</h1>
    <p><a href="about.html">Open About page</a></p>
    <p><a href="https://example.com" target="_blank" rel="noopener">External link</a></p>
</body>
</html>

Classroom Tips

  • Write clear link text.
  • Check that linked files exist in your project.