Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

HTML | <img> border Attribute

  • Last Updated : 27 May, 2019

The <img> border attribute is used to specify the border width around the image. The default value of <img> border attribute is 0.
It is not supported by HTML 5. HTML 5 uses CSS instead of this attribute.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<img border="pixels">

Attribute Values: It contains single value pixels which specify the width of the border.


<!DOCTYPE html>
        HTML img border Attribute
    <h2>HTML img border Attribute</h2>
    <img src=
         alt="GeeksforGeeks logo" 


Supported Browsers: The browser supported by HTML <img> borderĀ attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :