WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Best practices showing revisions (strikethroughs, etc.)

for

From: SaravanaMoorthy.P@cognizant.com
Date: Jan 9, 2014 11:17PM


Similar issue we faced where the actual price amount is stricken out(when there are some offers on particular product) and we used the traditional offscreen text
<div>
<span style="text-decoration: line-through ">$5.00 <span class="audioText">Priced stricked out</span></span>
</div>
Here the class auidoText contains the offscreen css properties.

This will be read in all screen readers and users are informed about the stricken amount.

Regards,
Saran.

-----Original Message-----
From: Scott González [mailto: <EMAIL REMOVED> ]
Sent: Thursday, January 09, 2014 8:52 PM
To: WebAIM Discussion List
Subject: Re: [WebAIM] Best practices showing revisions (strikethroughs, etc.)

On Thu, Jan 9, 2014 at 10:09 AM, Wyant, Jay (MNIT) < <EMAIL REMOVED> >wrote:

> To make sure I am clear:
>
> - Both <del> or <s> are acceptable tags for strikethrough- the key is
> to alert the screenreader user to set to a proofreading scheme (in
> JAWS by pressing alt-insert-s). Otherwise the screen reader will
> simply ignore all text within those tags.
>

<del> is the semantically correct element; use it over <s>.


> - Would an alternative, such as this strikethrough code I found on
> Karl Groves' site work for all environments?: <span style="text-decoration:
> line-through;">
>

This is worse than <del> or <s> as it holds no semantic meaning.

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.