How to Make a Link
Sure, making a basic link in html is a very simple process. Simply surround some text with an anchor tag, something like this:
Note that you need to specify the "http://" if you are going off-site. If you do not include this, the browser will think that the link is a relative link (explained later). This is easy enough, but there are a few things that can be added to the anchor tag to make the link a bit more effective.
Wait, wait! What is all this about an "anchor tag"? Well, most people think of this as the code which connects two websites. But it need not connect to an outside website. It can also link to local pages within the same website, within the same directory, or even connect to another passage on the same page!
An important attribute of anchor tags, is the title attribute. Here is another term that may be unfamiliar. A tag is an HTML command that is surrounded by the greater than and less than signs; it tells the browser to do something. An attribute is a way to modify the way a browser interprets that command.
The title attribute tells the browser the name of the page to which the link is pointing. It has several effects. First of all the title will appear in a little box near the link when the cursor is hovered over it. Second, if the link is saved in favorites, it will be saved under the name given in the title attribute. Finally, some search engines may use it as a means of determining the content of the page to which the link is pointing. Title tags should generally be used, especially when pointing to other on-site links. A title attribute in an anchor tag will look something like this:
<a href="http://www.indepthinfo.com" title="InDepthInfo You Are Looking For!">InDepthInfo</a>.
Other attributes we will explore include the rel="nofollow", and its significance for search engines. Images and even whole pages can be included in a link. Using the target attribute, the link can spawn a new window.
Creating links needs not be complex. However, knowing all of the ins and outs of linking can make your links more helpful to the web surfer. Interestingly enough, the most important thing to do when creating a link is testing it once it has been installed. It is very easy to leave off a quotation mark or to misspell a domain name. Don't take for granted that you did it right the first time. There is nothing more frustrating for a web surfer than a link that goes nowhere, and isn't pleasing your visitor what making a website is really all about?
There is a lot to know about how to make a link. All that information is right here. So please proceed to the next page for information about: On-Site Linking.