Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <img> alt Attribute

Improve Article
Save Article
  • Last Updated : 22 Jul, 2022
Improve Article
Save Article

The <img> alt attribute is used to specify the alternate text for an image. It is useful when the image not displayed. It is used to give alternative information for an image. 


<img alt="text">

Attribute Values: It contains single value text which specifies the alternative text for an image. 



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



Supported Browsers: The browser supported by HTML <img> alt Attribute are listed below:

  • Google Chrome
  • Edge 12 and above
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!