4. s or “strike” tags used to format text

1.3.1

Incorrect strike example

Description: Do not use the ‘s’ or ‘strike’ tags.

Context: In HTML5 the ‘del’ tag has been semantically designated for text that should be removed instead of ‘s’ or ‘strike’. The ‘ins’ tag is used to indicate recently inserted, or replacements for deleted text.

<div align="center">
   <font color="red">
     <strike>$20</strike>
   </font>
   $10
</div>

How to fix it: Use semantic elements to indicate deletion, and CSS to handle styling.

<div>
   <del>$20</del>
   <ins>$10</ins>
</div>

TechniquesARIA1ARIA15