GEM-I'm a dedicated Wordpress & Squarespace developer

HTML img alt Attribute – GEMCODE

Definition and Usage

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.


The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

Example An image with an alternate text :


<img alt=”text“>


<p><img src=”×512-1.png” alt=”Girl in a jacket” width=”500″ height=”600″ /></p>

Girl in a jacket

Spread the Code



You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *