References

Collection of references for web development.

HTML alt attribute

Description

Alternative text string to display on browsers that do not display images. The alt is required if the href attribute is used.

Values

Value
string

Example

<img src="https://via.placeholder.com/350x150" alt="Text that represents the image" width="350" height="150">