How To

How to Create a URL Link in HTML

Contributor
By eHow Contributing Writer
(9 Ratings)

You can create a URL link in HTML by placing "tags" around the text you want to transform. URL links represent the heart of any web page, and though links can also be created through image maps and buttons, the most common way is by associating a link with text.

Difficulty: Moderately Easy
Instructions

Things You'll Need:

  • HTML or text file editor

    Create the URL link

  1. Step 1

    Open your text file or HTML editing software and place your cursor on the spot where you want to create your URL link.

  2. Step 2

    Type the following:
    Click here to visit my website

  3. Step 3

    Replace the material between quotes with the URL of the web page you want to link to.

  4. Step 4

    Change out the "Click here…site" with the text that you want to appear marked as a hyperlink (in most cases, blue and underlined).

  5. Step 5

    Leave the tag the way it is if you want the hyperlinked document to appear in the same window, but if you want it create a new window, add a target attribute so that the final result would look like this:
    Click here to visit my website

Tips & Warnings
  • The document that your URL link leads you to will open in the same browser window as the current web page.
  • Don't forget to close your tag, or all your subsequent text will take on the attributes of the URL link.

Post a Comment

Post a Comment

Have you done this? Click here to let us know.

I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow’s Internet Expert.

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics