Creating Text Links in HTML

Intro to Web Design

victor rodriguez
The most prominent feature of an HTML document is the ability to link other documents through the use of hyperlinks. Hyperlinks are the pathways that create the World Wide Web as we know it. Links serve a wide range of purposes. You can link one web page to another or link a file to your page so visitors can download the file.

Creating a text link involves wrapping the text around an opening and closing link tag. The link code would be as follows...

xxx

The "xxx.HTML" represents the file that you want to link to. If the file you are linking to is within the same site folder as the original web page, all you have to include is the file name and file extension. If the file is in a subfolder, you will have to include the subfolder as well. For example, if the file "victory.html" is in the folder named blog, you would have to type "blog/victory.html" as your link href. If the web page you are linking to is in a totally different site, you would have to write out the entire web address including the http://.

The xxx between the opening tag and closing tags represent the item or text you want to make into a link. For example, if you wanted to link to your store page named "page.html" and want the text to show as "My store", your link code would be as follows...

My Store

If you want to only link part of the text within a sentence you can add the link code directly within the text element itself an in the example below.

To visit my store Click Here

The only part of the sentence that will become a link is the "click here" phrase. Make sure that you close the link tag with the

otherwise all text and images that come after the link open tag in the html document will become a link to whatever document you linked to. The default link color for most browsers is blue and becomes purple when visited. Also, the default color of a link when you hover your mouse over the link is purple as well. You can change the default colors with the aid of style tags.

Published by victor rodriguez

Hello everyone. I am the owner and Designing Manager of Victory Web Productions. I live in Guilderland, NY and am a father of a beautiful baby girl, Amy.I guess this is where I tell you a little about my h...   View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.