True or false? Every <img> element should have alternative text.

Question: True or false? Every <img> element should have alternative text.

  • True
  • False

Explanation

HubSpot’s accessibility guidance says images that convey meaning or are interactive should have a text alternative, and custom modules should pass the editor-provided alt text into the <img> element. It also gives one explicit exception: if an image is purely presentational and adds no context, it should use a null alt value such as alt="". That prevents decorative images from adding unnecessary output for screen readers. In HubSpot CMS development, the rule is appropriate alt text based on the image’s purpose, not descriptive text on every image. HubSpot Developers+1

Why the other options are incorrect

A) True is incorrect because HubSpot allows presentational images to use empty alt text instead of descriptive text. HubSpot Developers

Source for verification

https://developers.hubspot.com/docs/cms/best-practices/improve-existing-sites/accessibility

The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top