VOOZH about

URL: https://www.geeksforgeeks.org/html/html-img-height-attribute/

⇱ HTML | <img> height Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML | <img> height Attribute

Last Updated : 22 Jul, 2022

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

Syntax:

<img height="pixels">

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

Example: 

Output:

 👁 Image
 

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

  • Google Chrome
  • Edge 12 and above
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
Comment
Article Tags: