Home Logic Battle Card RPG Godot Tutorials Linux Gaming Blog NodeJS + Postgres LAMP Stack HTML CSS Website Builder PHP ReactJS VR Tech Blog PHP Fiddle

Intro to HTML: alt attribute

Quick Copy Boxes

The alt attribute is set equal to text that you want to display, incase an image file does not display.

At the bottom of this page there is a code editor pre-loaded with the lesson's code.

Image alt


<img src="rainyDay.jpg" alt="It is raining today.">

            

src The user's web browser will first try to display rainyDay.jpg.
alt If the web browser can not display the image, it will display this text instead.