Reputation: 10094
Should you write :
<img src="myimage.jpg" alt="large cat & dog">
or
<img src="myimage.jpg" alt="large cat & dog">
Upvotes: 2
Views: 153
Reputation: 944559
The rules for when you should use the entity for an ampersand instead of a single raw &
character are the same for the value of an attribute as they are for anywhere else in HTML.
Upvotes: 5