Easy Tutorial
❮ Prop Table Cellspacing Met Console Trace ❯

Image border Attribute


Definition and Usage

The border attribute sets or returns the border attribute value of an image.

The border attribute specifies the width of the border around the image.

Note: By default, images do not have borders (unless the image itself has a border).

Syntax


Browser Support

All major browsers support the border attribute.


Example

Add a border to an image:


❮ Prop Table Cellspacing Met Console Trace ❯