1. Computing & Technology

Discuss in my forum

border - HTML Attribute for the IMG and OBJECT Tag

By , About.com Guide

border:

The border attribute sets width of the border around an image or other object.

This attribute has been deprecated in favor of the CSS property border.

Used with Elements:

Content:

A number

This is the number of pixels for the width of border. It must be a positive integer. Numbers like -3 and 0.35 are not valid.

Default:

Not required

Deprecated:

HTML 4.01 / XHTML 1.0: Yes
HTML 5: Yes

DTD:

HTML 4.01 Loose
XHTML 1.0 Loose

Other Tags with Border Attributes:

©2012 About.com. All rights reserved.

A part of The New York Times Company.