bdub328 / tea_cozy

0 stars 0 forks source link

Alt attributes #3

Open aubreywullschleger opened 5 years ago

aubreywullschleger commented 5 years ago

Subtlety for errors! Consider using descriptive alt attributes on your <img> elements, or leaving them empty, instead of omitting them entirely - like this: <img src="./resources/images/img-berryblitz.jpg" alt="mug of tea with berries"> or <img src="./resources/images/img-berryblitz.jpg" alt="">. Using alt attributes is best practice and makes your site more accessible. We can leave alt attributes empty when the image does not add information to the content of the page - see this resource to help aid in your decision to give alt attribute values (or to leave them empty): https://www.w3.org/WAI/tutorials/images/decorative/

Example: https://github.com/bdub328/tea_cozy/blob/master/index.html#L50