Skip to Main Content
Perplexed Owl Random Ponderings

Benjamin ‘Benilda’ Key:

heading is img with no alt

Screen Reader Reliability Testing

Introduction

In the following example [the h2 element][] is used but instead of using text as heading content the img element is used without the alt attribute, the title attribute, or any other neans of providing a name for the image.

This example is similar to the [img without alt or title][] example.

Test

Additional Information

Since the img element is used as the content of a heading, you must provide accessibility information for the img element, perhaps by using the [alt attribute][].

For more information see the following.

Back to top