anchor tag: Below is a sample link that takes you to the Google Affiliate Network home page:
To go to the Google Affiliate Network home page, click here
In actual HTML, the code for this link would look like this:
To go to the Google Affiliate Network home page, click <a href="http://www.google.com/ads/affiliatenetwork">here</a>
Notice in the example above that you are only able to click on the word "here!" This is because the word "here!" is located between the opening anchor tag (<a >) and the closing anchor tag (</a>). Because this is an anchor tag, you need to show where you wish the user to go once the link is clicked. The "HREF" attribute allows you to specify a location, called a URL, for this destination. In the above example, the user will be taken to the default Google Affiliate Network home page; the URL for this page is: "http://www.google.com/ads/affiliatenetwork".
To specify any other page within your site, you need to include the directory and/or page name, such as in this link:
To go to the ConnectCommerceSM Login page, click here
Which would look like this in HTML code:
To go to the ConnectCommerceSM Login page, click <a href="/global/login.html">here</a>
The above example will open the destination page in the same browser window as the current page (where the link is). If you want to open the destination page in a new browser window, use the anchor tag's target attribute, and set the value to "_blank" or "_new", as in the HTML code below:
To go to the ConnectCommerceSM Login page, click <a href="/global/login.html" target="_blank">here</a>
The way the link appears on the page does not change at all, however:
To go to the ConnectCommerceSM Login page, click here
Using image tags and links together: It is also possible to turn an image into a link. To do this, all you need to do is place anchor tags around an image tag. The HTML code for an image link would look like this:
<a href="http://www.google.com/ads/affiliatenetwork">
<img src="/images/logo_masthead.gif">
</a>
Notice that there is a border surrounding the image above. To remove an image´s border (and still have the image be a link), add a the "border" attribute to the image tag, and set it equal to zero, like this:
<img src="/images/logo_masthead.gif" border="0">
The resulting image is still "clickable", but does not have a border: