HTML MADE EASY

 
Free Graphics | Graphics Optimizer | Resources | Freeware
JPEGCruncher Desktop | T-Shirts

Lesson 7: Links


Putting It All Together
Links, this is what the web is all about and it's simple to do by using the anchor tags:

<A> </A>

The anchor tag has an attribute: HREF It means "Hypertext Reference". This attribute tells the browser where to find the link. A link on the same website would look like this:

<A HREF="filename.html">here goes text or image to be clicked </A>

The beginning <A> tag includes the attribute with the file name of the web page you want to link to. Notice that the file name has the html extension, separated by a dot and that it's enclosed in quotation marks. Keep all your pages in the same folder (directory) otherwise you would have to type in the whole path, something like "foldername/filename.html" So keep it simple.

After the beginning anchor tag put the text or graphic you want people to click. This becomes the link to another page.The end </A> finishes the link. Here's how to turn a graphic into a link:

<A HREF="filename.html"> <IMG SRC="graphicname.jpg"> </A>

Don't forget to put these things: < > around the IMG tag and remember the quotes around the graphic file name together with its format, usually either jpg or gif. You now have a graphic that is linked to another page. By default a linked graphic has a border around it, you can remove it by putting a BORDER attribute set to "0" in the IMG tag:

<IMG SRC="graphicname.gif" BORDER="0">

Linking To Another Site
To link to another website you have to type in the entire url (internet address). For instance to link to this website you would put:

<A HREF="http://www.accessv.com/~email/webpages.com">click here</A>

See? The beginning <A> tag contains the entire web address of this site enclosed in quotes. The stuff between the anchor tags is what people will click.

Sending Email
For visitors to be able to send you email from your site, do the same thing but instead of the web address, put your email address after mailto: Example:


<A HREF="mailto:youremail.com">here goes stuff to be clicked</A>

There are no spaces between the mailto: and the email address. See where the quotation marks are in my example? Don't forget them.

There you go. Now you have a workable website. Still want to learn more? Let's see how to make a table in Lesson 8


dog portraits