Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

Attribute for <IMG ...>
BORDER = integer

BORDER is most useful for removing the visible border around images which are inside links. By default images inside lunks have visible borders around them to indicate that they are links. However, user generally recognize these "link moments" and the border merely detracts from the appearance of the page. For example, this button has a border around it:

this code produces this
<A HREF="../"><IMG SRC="idocs.gif"
   ALT="Idocs Guide to HTML"
   HEIGHT=33 WIDTH=82></A>
Idocs Guide to HTML

To remove the border, set the BORDER attribute to 0:

this code produces this
<A HREF="../"><IMG SRC="idocs.gif"
   BORDER=0
   ALT="Idocs Webmaster's Resources"
   HEIGHT=33 WIDTH=82></A>
Idocs Webmaster's Resources

For images that are not inside links, a BORDER value greater than zero sets a visible border around the image.

this code produces this
<IMG 
    SRC="pumpkin.gif"
    ALT="picture of a pumpkin"
    HEIGHT=100 WIDTH=100
    BORDER=10>
picture of a pumpkin

Netscape still has problems correctly rendering visible borders. If you want a border around your image it may be better to simply add the border directly to your image using your favorite graphics editor.


Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: