CMS Development

MattOnce
Contributor

Empty alt text for blog image removes alt attribute in code

SOLVE

I am trying to give an image an empty alt attribute (alt=""). But when editing an image in a blog post and leaving the alternative text field empty, Hubspot removes the "alt" attribute from the code completely, instead of giving it an empty value.

 

An empty alt attribute is needed for accessibility, and used by screen readers to know when an image is purely decorative, rather than one that requires description/ alternate text.

 

I could just use code view to add alt="" where needed, but what can I offer my content creators who are less familiar with html source code?

0 Upvotes
1 Accepted solution
dennisedson
Solution
Community Manager
Community Manager

Empty alt text for blog image removes alt attribute in code

SOLVE

@MattOnce 

Thanks for submitting this!  We have created an issue for this internally! 

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show

View solution in original post

MattOnce
Contributor

Empty alt text for blog image removes alt attribute in code

SOLVE

You're welcome!

0 Upvotes
dennisedson
Solution
Community Manager
Community Manager

Empty alt text for blog image removes alt attribute in code

SOLVE

@MattOnce 

Thanks for submitting this!  We have created an issue for this internally! 

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show