Always add an empty alt attribute to every spacer or decorative image you use in your website, i.e. <img src=”spacer.gif” alt=””>.
If spacer or decorative images have no alt attributes, those browsing with images off, or with text browsers, will either see or hear the file name, or the text ‘[image]’, for each image lacking an alt attribute.
Learn to design and manage WCAG compliant, accessible websites with my online course
You will learn both the techniques of accessible website design and an entire ‘framework for thinking about the subject’. It will equip you with the skills to understand, identify and fix issues any accessibility issues you come across. Watch the free videos to get a taste of what is on the course
View a list of all blog posts.