Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

HTML | <img> width Attribute

  • Last Updated : 27 May, 2019

The <img> width attribute is used to specify the width of the image in pixels.


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

<img width="pixels">

Attribute Values: It contains single value pixels which specify the width of the image in pixel.


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


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

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