by Vivienne Trulock
To place an image in your page, use this code: <IMG SRC=”images/someimage.gif”> or if the image is inside your own folder, then <IMG SRC=”someimage.gif”> will do. You can use either gifs, jpegs or pngs. Gifs for line art and graphics, jpegs for photographs and pngs for either, but they are much larger in size.
To facilitate people not looking at your page through graphic supporting browsers or those using blind readers, use the ALT command to provide an alternate text, like this: <IMG SRC="someimage.gif" ALT="Description of Image">. This text is read out by the screen reading software.
Search the Internet for an image and insert it into a HTML page or use this exclusive photo of bigfoot taken by me some years ago.
<HTML>
<HEAD>
<TITLE>Image</TITLE>
</HEAD>
<BODY>
<IMG SRC=bigfoot.jpg ALT="Not the Bigfoot you thought then???">
</BODY>
</HTML>
<html>
<head>
<title>Image</title>
</head>
<body>
<img src="bigfoot.jpg" alt="Not the Bigfoot you thought then???" />
</body>
</html>
Note that in XHTML the <img> tag closes itself with a /> at the end of the tag. There is no closing tag for <IMG> in HTML.
Note also, that although quotation marks are not required in HTML, they are required where there are spaces in the content. In this case the alt text is a sentence, so the quotation marks define what exactly is alternative text and what is not. If you forget to put in quotation marks only the first word will appear in the alt text, in this case: Not.
To make an image into a link, you first need to copy the image into the same folder or a sub-folder to the one that your web-page is in. The <IMG> tag goes between the <A HREF> and the </A> tags, exactly the same position as the text did in your first link exercise.
Make your image into a link.
<HTML>
<HEAD>
<TITLE>Image Link </TITLE>
</HEAD>
<BODY>
This image has a blue border, this means that it is a link:<BR>
<A HREF="http://www.bfro.net/"><IMG SRC=bigfoot.jpg ALT="Not the Bigfoot you thought then???"></A><BR>
Click on it to go to the Bigfoot website
</BODY>
</HTML>
<html>
<head>
<title>Image Link</title>
</head>
<body>
This image has a blue border, this means that it is a link:<br / >
<a href="http://www.bfro.net/"><img src=bigfoot.jpg alt="Not the Bigfoot you thought then???"/></a><br />
Click on it to go to the Bigfoot website
</body>
</html>
The next thing to learn is how to create a list.