How to Make a Hyperlink With the Anchor Tag

The HTML <A> tag, which creates a link in a Web page, email or other HTML-enabled content, is known as the anchor tag. You can turn a word, phrase or even an image into a hyperlink using the anchor tag. Hyperlinks take two forms: relative hyperlinks, which reference a link relative to the page on which you click the link, and absolute hyperlinks, which link to an exact URL.

Instructions

    • 1

      Go to or open the Web page or file in which you want to create a link, such as a MySpace profile, a WordPress blog post in "edit" mode or an HTML file on your computer opened in a text editor.

    • 2

      Type the following code where you want an absolute link to appear:

      <A HREF="http://URL.com/index.html">Link Text</A>

      Replace "URL.com/index.html" with the exact Web address you want the hyperlink to load. Replace "Link Text" with whatever text you want to appear as a hyperlink, such as "Click Here."

    • 3

      Type the following code where you want a relative link to appear:

      <A HREF="/blog">Link Text</A>

      Replace "blog" with the folder or file path to which you want to hyperlink, relative to the main domain name. Starting the link with the "/" sign goes to the top-level of the domain on which you save the hyperlink. For example, the code <A HREF="/tom">View Tom's Profile</A> on any page on myspace.com would load myspace.com/tom. If you used that same code on wordpress.com, it would load wordpress.com/tom.

Related Searches:

Comments

You May Also Like

  • How to Create Anchor Tags in WordPress

    If you are writing a particularly long post on your WordPress blog, you may want to include anchor links to allow readers...

  • How Much Does a News Anchor Earn?

    News anchors earn various salaries based on the market size of their city, generally earning around $15,000 per year in a very...

  • How to Make a Picture Into a Link

    Make a picture into a link by using an HTML editor and saying "anchor hypertext equals" a personal Web site. Close out...

  • How to Write an Anchor Tag

    An anchor tag is beneficial to a Web developer because it allows the developer to link to a certain section on the...

  • How to Post a Website Link

    Define the href attribute. Broadly speaking, there are four kinds of href attributes. An absolute URL can link to a page anywhere...

Related Ads

Featured