Your Name Here
Internet Services
Question?
Our Products
- Domain Registration
- Hosting Packages
- 50mb Web Hosting
- 100mb Web Hosting
- 200mb Web Hosting
- Micro Web Hosting
- Starter Web Hosting
- Standard Web Hosting
- Pro Web Hosting
Our Features
HTML Tutorial
Chapter 6: Links & Images
Anchored Links
Without Links, the World Wide Web wouldn't be a web at all! To add a link... you will use the <a href="location"> opening tag and </a> closing tag. Whatever appears between these two tags will become underlined and colored, and if you click on the underlined text it will send the browser to the location within the quotes.
Example of a link...
Visit Domain Name Registrations!
Visit <a href="../../index.html" >Domain Name Registrations!</a>
Note: Although Links are usually used to send people to other web pages, you may also use it to send email to a specific address by using a location of mailto:user@host.
Example of a Mailto: Link...
Send an E-Mail to Me!
Send an <a href="mailto:emailme@tutorial.com">E-Mail to Me!</a>
In-line Images
You may also add images (pictures) to your web page, as long as the image is in the .gif or .jpg (or .jpeg) file formats. You will not be able to use .bmp format files! The basic tag for in-line images in <img src="location" />. It is also recommended to add HEIGHT and WIDTH attributes to the IMG tag, which will allow the image to take proper proportions on a browser that is not currently viewing images. It is also recommended to use the ALT="what picture is" to tell a person what a picture is in case it is still loading or they are not viewing images. (The IMG tag has no closing tag!)
Example of a basic in-line image...

<img src="../../images/background/tutorial/bg.jpg" alt="Tutorial In-Line Image" />
Combining Links & Images
Many times you may want to have an image that is linked, so that if someone clicks the image, they will be taken to another page. This is rather simple- you just need to place the IMG tag within the A HREF tags. (<a href="location_of_link"><img src="location_of_image"></a>) You may also use the ALIGN tags with images!
When an image is also a link, it has a border around it by default. You can control the width of the border - or turn it off completely - by using border=n within the img tag. n is the width of the border (n = 0 for no border).
Example of a linked image...
Your Own HTML Page
Right click on the image below, and select "Save Image As" / "Save Picture As", or similar. Save it as "mail.png" in the same directory where your home page "index.html" is stored.
Add the following red text to your HTML page ("index.html")
<html>
<head>
<title> My First Webpage </title>
</head>
<body background="bg.jpg">
<center><h1><font color="blue">YOURNAME's Home Page</font></h1></center>
<p>This is the home page of <b>YOURNAME</b>.</p>
<p>E-Mail me by clicking the mail image. <a href="mailto:youremailaddress"><img src="mail.png" border=0></a></p>
<p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text, for emphasis.</p>
</body>
</html>
Save the text file as "index.html".