Home
HTML
HTML Accessibility
Tryit: HTML image - alt attribute
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>Alternative text</h2> <p>The alt attribute should reflect the image content, so users who cannot see the image get an understanding of what the image contains:</p> <img src="img_chania.jpg" alt="A narrow city street with flowers in Chania" width="460" height="345"> </body> </html>