Graphic Images
Images introduce whole new file types to your pages. So far, all we've dealt with are textual .html files. We also have to store the images in the home page folders. To learn more specifics about the different types of graphics files, take a peek at Basic Graphic Formatting elsewhere on this site. The HTML command tag to place an image on your page is always the same. Here is its format:
<img src="iblogo_anim.gif">IMG is merely an abbreviation for image. SRC is an attribute of the IMG tag and stands for SOURCE. It tells the browser where to find the image. For now, it's best to place the images you use in the same folder as the page files. That way you can refer to the image by name alone. If you put your graphic images all over the place, you end up having to point to sub-directories with the SRC attribute. iblogo_anim.gif is the name of the animated logo image above. Notice it follows the same naming convention as your page, a name (iblogo_anim), followed by dot, then the file type suffix (gif).
Recall from the last lesson we activated links to other locations with the anchor tag. You can do the same thing with images. If you clicked on the photo above to look for free graphics, you saw the technique in action. Here is the HTML code used to do it:
<a href="http://www.i-us.com/clipsrch.htm"><img src="free_graphics.gif"></a>As with text hyperlinks, observe the activation of the link as you move your mouse cursor over the image. It is worth mentioning at this point that hyperlinked images are, by default, surrounded by a border that designates the image as an active link. In most cases, this border can be rather annoying, but can be removed. You do it with the BORDER attribute of the IMG tag. To expand on the example above, here is the code to do it:
<img src="free_graphics.gif" border="0">Borders don't have to be set to 0, you can even make them a large number like 20 to create a framing effect around the image. Well that does it for this tutorial, as always you should practice what you've learned. We'll still be here when you get back. |
||
|
Register domain names at: |
||
|
The Internet Brothers have implemented
hierarchical menus for navigation. Easier done than said.
The hierarchical
menus were created using Peter Belesis' © Dynomat DHTML
scripting tool
from Webreference. Give them a visit, you'll like
what you learn.
Last night I played a blank tape at full blast. The mime next door went nuts.
|
Copyright © 1997-present Internet Brothers. All Rights Reserved. Really.