U4-4734 - Remove default alt text on images from RTE

Created by Jan Skovgaard 22 Apr 2014, 06:51:31 Updated by Per Ploug 13 Aug 2014, 09:01:39

In http://issues.umbraco.org/issue/U4-3691 I noticed that apparently the image name is used as an alt text if the editor does not enter something. That really should be changed since the alt attribute is probably the most mis-understood attribute. As my comments say in the referenced issue if the alt text does not make any sense or adds value to the context of the content it's better to have it be empty.

So that means that everytime an image is inserted into the RTE field it should render an empty alt attribute like alt="" - If the editor decides to add some text that should of course be rendered.

But please read my comment here http://issues.umbraco.org/issue/U4-3691#id_l.I.ic.it.c.c_67_13794.t.commentText_67_13794


Anders Brohäll 22 Apr 2014, 09:07:43

While at it, rename the "Title (optional)"-label to "Alternative text (optional)". ... Alt and Titles are not the same thing. Might confuse the users.

Jan Skovgaard 22 Apr 2014, 09:09:58

+1 for changing the text to alternative text.

Donald St. Martin 20 May 2014, 21:43:37

I think the problem lies upon not giving an image a meaningful name when it is created as opposed to the utility adding default text that is useless.

By law we have to have an alt text on an image for those who are visually impaired and using a screen reader. We teach our content contributors to use something meaningful when they create/upload an image so the filename + extension isn't used as default text because that is useless to someone depending on a screen reader to tell them what is there.

Anders Brohäll 13 Jul 2014, 07:17:58

@dstmartin The name of the image doesn't necessarily have to to anything with the motive of the image. Also, when uploaded through the media picker the name of the media item will become the filename, including .ext. That's nothing but bad when it comes to accessibility and SEO.

Jan Skovgaard 14 Jul 2014, 11:35:27

@dstmartin The alt attribute should be empty if the image in question does not add any meaning to the text. If it's only for decorative purposes it's ok if it's empty. It needs to be there. But it's OK that it's empty.

Sunshine Lewis 05 Aug 2014, 16:51:39

Agreed: The current field should be renamed to Alternative text and the default value should be empty.

Priority: Normal

Type: Feature (request)

State: Fixed

Assignee: Per Ploug

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.1

Due in version: 7.1.5


Story Points: