How Do I Insert a Link Using HTML?

by Kristen Waters

Hyperlinks, or links, are a way to access another web page, image, movie, ftp file or other resource from the current page. An anchor tag is used to specify the URL (address) of the destination. The link text is usually displayed in a different format from the other words on the page, for example, blue and underlined. This lets visitors know that they can click on those words to be taken to another page.

Creating the Link

Use a text editor such as Windows Notepad to create an HTML document. Begin with the "" tag and end with the "" tag. Most HTML documents contain a "" section which holds the metadata for the file. The "" section defines what the visitor sees. Place your links here. The format for a link is: link text A link begins with the "" tag. Define where the link will open using the target attribute. The code "link text" opens the page in a new browser window. The target can be defined as "_blank", "_parent", "_self" or "_top". The link will open in a new window if you set the target to "_blank". The target will open in the same window if you set it to "_self". The "_parent" and "_top" definitions are used in web pages with frames. Setting the target to "_parent" will open the link in the current frame. Setting the target to "_top" will open the link in the top frame.

About the Author

Kristen Waters has been writing for the computer industry since 2004. She has written training materials for both large and small computer companies as well as how-to and informative articles for many online publications. She holds Bachelor of Science degrees from both York College of Pennsylvania and the University of Maryland.