# Image alternate text

**URL:** <https://forum.pinegrow.com/t/image-alternate-text/4443>\
**Category:** Bug Reports\
**Tags:** feature-request\
**Created:** [August 13, 2020, 5:05pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443 "2020-08-13T17:05:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [August 13, 2020, 5:05pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/1 "2020-08-13T17:05:30Z")

</div>

not sure if this a bug or a missed attempt to do the right thing, but proper html dictates that every `<img alt="">` tag must include an alternate text designation, even if it’s `NULL`

what PG does if you leave the field blank in the UI is that it omits the `alt=` attribute altogether, which is not what we want in this case.

If you try to put open/close quote in the UI field, then PG over-achieves by putting in both sets of quotes with the inner ones as the ascii code `alt="&quot;&quot;"` when it adds the attribute.

which is all technically correct, but under/over shoots the target with no way to just put in the `alt=""` when we don’t need to designate a page reader description of, say, an icon image or logo.

my suggestion is:

1. that PG should automatically always add the `alt=""` attribute to the tag, even when the UI is left blank (representing a `NULL` value).

2. then if anything is entered into the UI field, PG would place the string inside the existing set of quotes, rather than add an additional `alt=` attribute string to the tag.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [August 13, 2020, 6:45pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/2 "2020-08-13T18:45:44Z")

</div>

I agree with you that the `alt` attribute should always be added for relevant type images, but according to both Mozzila (RIP?) and the W3 living standard, it is optional.  
[Mozzilla](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/c/cc14ddf5096bc623586699c858ba5cabcb5e723f.png)  
[W3](https://www.w3.org/MarkUp/html3/img.html)  
[![](https://dl.dropboxusercontent.com/s/mmtu8og4l3by7m7/Screen%20Shot%202020-08-13%20at%202.44.16%20PM.png?dl=0) ](https://dl.dropboxusercontent.com/s/mmtu8og4l3by7m7/Screen%20Shot%202020-08-13%20at%202.44.16%20PM.png?dl=0)  
Just my two cents.

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [August 13, 2020, 7:21pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/3 "2020-08-13T19:21:09Z")

</div>

> [@RobM](#):
>
> Mozzila (RIP

wait, what happened to mozzila?

anyway, so, the reason i bring this `alt=` thing up is because i ran one of my pages thru the W3 validator and it caught it. otherwise, i might not have ever noticed it was missing.

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/e13744ae13c520a1754d7bed04c1b8cb23d5738e.jpeg)

btw, it said it was an Error, not a Warning.

the difference for the screen readers is, i believe, that when it’s `NULL` the reader omits mention of the image altogether so as not to distract from the content flow…

if the attribute is missing, then the reader says there is an image here, but it has no information about it.

which would totally be distracting and leave the user wondering, yet again, what they are missing out on.

---

<div class="post-metadata">

**Author:** ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)\
**Post date:** [August 13, 2020, 7:37pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/4 "2020-08-13T19:37:16Z")

</div>

> [@RobM](#):
>
> Mozzila (RIP?)

> [@droidgoo](#):
>
> wait, what happened to mozzila?

They laid off a approx a quarter of their staff. But they are also planning to refocus in areas to create income. I don’t see them going anywhere.

> **[Changing World, Changing Mozilla | The Mozilla Blog](https://blog.mozilla.org/en/mozilla/changing-world-changing-mozilla/)**
>
> This is a time of change for the internet and for Mozilla. From combatting a lethal virus and battling systemic racism to protecting individual privacy —

---

<div class="post-metadata">

**Author:** ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)\
**Post date:** [August 13, 2020, 7:45pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/5 "2020-08-13T19:45:47Z")

</div>

> [@RobM](#):
>
> it is optional

Not if you’re concerned about accessibility, A11Y, WCAG, ADA, etc., and **people should be** when creating sites, allowing for accessibility.

---

<div class="post-metadata">

**Author:** ![droidgoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/droidgoo/32/2209_2.png) [@droidgoo](https://forum.pinegrow.com/u/droidgoo)\
**Post date:** [August 13, 2020, 8:02pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/6 "2020-08-13T20:02:29Z")

</div>

jebus, RIP indeed.

that “announcement” sure used a lot words in, what appear to be, the correct order… but it didn’t say A THING… nada, zip, zero.

all i got from it was that some hot shot exec rolled into the c-suite and said, “Firefox and Mozilla retain a high degree of trust in the world”… “and i’m going to burn it to the ground while making a shit ton of money, now get off!”

that’s what i heard.

---

<div class="post-metadata">

**Author:** ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)\
**Post date:** [August 13, 2020, 9:11pm UTC](https://forum.pinegrow.com/t/image-alternate-text/4443/7 "2020-08-13T21:11:12Z")

</div>

> [@droidgoo](#):
>
> RIP indeed

I don’t know I surely hope not. Its hard to imagine an entity that has given the web so much (invented/implemented) vanishing. But its 2020 and so much is becoming hard to imagine. Firefox Dev Tools & Firefox Developer Edition are awesome and if / when the quality of MDN diminishes that will impact the entire web.

Its amazing on twitter how many companies are reaching out trying to get those people, at least others see their value. @matjaz too bad Pinegrow can’t reach out (like webflow) and hire a handful of these super talented people and help get things moving forward faster. 😄

[https://twitter.com/craigbuckler/status/1293445016736731141](https://twitter.com/craigbuckler/status/1293445016736731141)

> <https://twitter.com/MozDevNet/status/1293647529268006912>

2020 🙃
