In html does the text inside the img tag's alt attribute require encoding/escaping?
Non encoded example:
<img src="myimg.png" alt="image description" />
Encoded example:
<img src="myimg.png" alt="image%20description" />
No, it does not need to be encoded like a URI. However, HTML characters must be encoded, like this...
<img src="myimg.png" alt="Me & my image" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With