Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Very tedious accessibility question about alt tags

For a WCAG 2.0 compliant website need to have alt tags for the images.

When it comes to something like a company logo. Should the alt tag just be the name of the company, or the name of the company followed by "Logo" I think the former makes more sense but if there is a definitive best practice I would like to know!

Exciting question eh?

like image 937
AJM Avatar asked Dec 05 '22 01:12

AJM


2 Answers

The best guideline is, if the image wasn't available - what would you want to see instead?

The alt text shouldn't be a description of the image, it's a textual alternative to the image.

like image 134
Gareth Avatar answered Feb 05 '23 03:02

Gareth


Is the logo of value to users of screen-readers? If not--then consider displaying the image via CSS rather than an <img> tag--CSS (presentational) images do not need to have alt tags (they actually can't have them), they are understood to be a visual-portion of the page rather than the actual content of the page.

implies that the image is valuable content related to the page--so if the logo is essentially eye-candy, of presentational value only, then it may not belong in HTML at all.

Just remember: screen-readers allow users to access the content. HTML is for content, CSS for presentation--if your HTML is muddied with non-content then providing a good, accessible, experience becomes much more difficult.

like image 42
STW Avatar answered Feb 05 '23 02:02

STW