Join Webmonkey, it's free. Members log in.


[Learn It][Teaching Tool]

Image Borders
[Imagemap] <img border=#> sets the border size of an image

The image border is the line that appears around the edge of a picture placed on a Web page. Normally, this border will only appear if you use the image as a link; however, you can deliberately create a border of any size around your image by using the <img border=#> tag, and replacing the # with a border size, from 0-99.

Conversely, you can prevent a border from appearing around a linked image by setting the border size to zero (<img border=0>).

Our normal image, with the border unspecified has no border at all:

<img src="stuff/monkey.gif">

But we can add a border, using <img border=#>.

<img border=5 src="stuff/monkey.gif">

<img border=15 src="stuff/monkey.gif">

<img border=30 src="stuff/monkey.gif">


Got a handle on it? Do it.



Previously in HTML ...

HOMESEARCH
HELP

Copyright © 1996 HotWired, Inc. All rights reserved.