Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

Create a Link on Your Web Page

By Jennifer Kyrnin, About.com

Links are one of the most used tags in XHTML, but if you don't know how to write one, you won't be able to move your readers from one part of your site to another. This quick tip will show you how to create a link using the a (or anchor) tag.
Difficulty: Easy
Time Required: 5 minutes

Here's How:

  1. As with all tags, start with the less-than sign:
    <
  2. The name of the element is a - so that comes next:
    <a
  3. Since this is a link to something else (rather than an identifier for a location on the page), you should include the href attribute:
    href=""
  4. Inside the href attribute, include the URL where the link should go to when you click on it:
  5. Close your starting tag with a greater-than sign:
    >
  6. Then put the text or image you want to be clickable:
    Learn Web Design
  7. Finally, close your link with a close anchor tag:
    Learn Web Design

Tips:

  1. It's good form (and follows the standard) to enclose your attributes in quotes, either single or double.

Explore Web Design / HTML

About.com Special Features

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. Beginning HTML Tutorials
  6. Use the A Tag to Create a Link on Your Web Page

©2009 About.com, a part of The New York Times Company.

All rights reserved.