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.
-
1