<img src="" border="">
Browser |
|
---|---|
Type |
The border attribute of the IMG element adds a border around an image.
<img src="example.gif" alt="Example" border="1">
Attribute | Value | Explanation |
---|---|---|
border=" " | pixels | the size of a border |
The use of this attribute is deprecated. (Use CSS instead)
Example
<p><img src="image/example.jpg" alt="Example"> Default</p>
<p><img src="image/example.jpg" alt="Example" border="1"> The border is 1</p>
<p><img src="image/example.jpg" alt="Example" border="5"> The border is 5</p>
- Output
-
Default
The border is 1
The border is 5