Home
HTML
HTML Attributes
Tryit: HTML 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>The alt Attribute</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_girl.jpg" alt="Girl with a jacket" width="500" height="600"> </body> </html>