x

How to Post a Website Link

by John Phillips

HTML links between websites are the glue that holds the World Wide Web together. Without links, there would be no “web”--just an assortment of isolated, disconnected pages. Links are not only fundamental to the Web's functioning but are also highly flexible and easy to learn.

Step 1

Understand the basic syntax and terminology of a link. HTML links are represented by the anchor element, represented by the tags. A simple link would look like this: eHow The href attribute is the address of the page to link to. The link text that is displayed on screen is between the tags.

Step 2

Define the href attribute. Broadly speaking, there are four kinds of href attributes. An absolute URL can link to a page anywhere on the Web, such as: eHow A relative URL can only link to a page within the same domain, such as: eHow An email address will open up the user’s email client: Send Mail to eHow An anchor URL will jump to an anchor point, either on the same page or a different one such as: eHow Top 10 There has to be an anchor point inserted in the target page for this to work.

Step 3

Choose how to display the link. Text links are self-explanatory, but if you want to make an image link, you need to use the following syntax: In this example, "img src" refers to the URL of the image you want to use.

Step 4

Set the target attribute, which allows you to specify where the linked document will open. By default, the target attribute is "_self," which opens the link in the same window or tab. Use "_blank" to open the link in a new tab, and "_parent" to open in the parent frame. The code looks like this: eHow

Post the link by copying it and pasting it into the site where you want it to appear.

Video of the Day

Brought to you by Techwalla
Brought to you by Techwalla

More Articles