Which option is listed as one of the five ways to mark an image as decorative?

Prepare with the Trusted Tester Training Test. Utilize interactive quizzes with flashcards and multiple-choice questions that include hints and explanations. Enhance your test readiness now!

Multiple Choice

Which option is listed as one of the five ways to mark an image as decorative?

Explanation:
Marking an image as decorative means telling assistive technologies that the image doesn’t convey any information and can be ignored. The most direct and widely supported way to do this in HTML is to use an empty alt attribute, alt="". This signals to screen readers that there is no descriptive content to read for this image, so it won’t be announced and won’t interrupt the flow of information for users relying on assistive tech. For decorative images, keeping the alt text empty avoids clutter and keeps the focus on meaningful content. The other approaches can also suppress how the image is presented to assistive technologies—using role="presentation" or role="none" removes the semantic meaning of the image, and aria-hidden="true" hides it from the accessibility tree entirely—but the empty alt attribute is the standard, explicit way to mark decorative images in HTML.

Marking an image as decorative means telling assistive technologies that the image doesn’t convey any information and can be ignored. The most direct and widely supported way to do this in HTML is to use an empty alt attribute, alt="". This signals to screen readers that there is no descriptive content to read for this image, so it won’t be announced and won’t interrupt the flow of information for users relying on assistive tech. For decorative images, keeping the alt text empty avoids clutter and keeps the focus on meaningful content.

The other approaches can also suppress how the image is presented to assistive technologies—using role="presentation" or role="none" removes the semantic meaning of the image, and aria-hidden="true" hides it from the accessibility tree entirely—but the empty alt attribute is the standard, explicit way to mark decorative images in HTML.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy