--- url: "https://www.w3.org/WAI/WCAG22/Techniques/html/H86" titulek: "H86: Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak | WAI | W3C" h1: "Technique H86:Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 03:49:50" znaku: 6956 slov: 958 kodovani: "utf-8" sha256: "279363528c09a29789df4a02061a1677bb647bd3830481cd8c94956844cdc87d" --- # Technique H86:Providing text alternatives for emojis, emoticons, ASCII art, and leetspeak ## About this Technique This technique relates to [1.1.1 Non-text Content](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content) (**Sufficient**). This technique applies to HTML. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description Emojis are very popular and are frequently used online to help provide more context and expression to text-based communication. Emojis come with their own pre-defined names that might not always match what the author is intending to communicate. For example, the emoji of a black right-facing triangle (►) is described by default as *black right-pointing pointer*, which would be confusing if a designer had changed its rotation or color, or if it was being used to give the accessible name to a "play" button in a multimedia player. Emoticons pre-date emojis, are still used but are much less popular than they once were. Emoticons use ASCII characters to create facial expressions and other ways to communicate an emotion. Because emoticons are made from many text characters, they can be confusing for screen reader users. When possible it is better simply to use a word like "smile" or a suitable emoji instead of an emoticon. If emoticons are used they should have a text alternative. ASCII art was common on the internet before graphics became widely used. ASCII characters were arranged to form pictures, pictures of text, or graphs. Although ASCII content is not used frequently on the web anymore, it must be remembered that, when it is used, it can be very confusing to people who are accessing the internet using screen readers. If ASCII art is used, it should also have a text explanation of what the picture is. It is also suggested that, if the ASCII picture isn't marked up as an image using ARIA, that there is a link to skip over the art (although this is not required). Leet used to be a fairly-common part of Internet culture and slang, but is now hardly used. Leetspeak uses various combinations of characters, including numerals and special characters, to replace standard characters. Leet is often incomprehensible to people using screen readers, and therefore requires a text alternative in order to conform to [Success Criterion 1.1.1 (Non-Text Content)](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html). ## Examples ### Example 1: Marking up emojis in a sentence This shows a technique to mark up emojis with accessible names that differ from their default. Because you can't use an `alt` attribute on a `span` element and the ARIA recommendation disallows accessible names on generic elements, to give the emojis accessible names they are defined as images with the ARIA `role="img"` property which then allows the creation of an accessible name using the `aria-label` property. ```
I smiled at my friend and gestured 👉🏾 🤘🏾!
``` ### Example 2: Four options for providing alternatives for an emoticon representing "smile" The following shows four options for providing alternatives for an emoticon representing "smile", which is consists of a colon followed by a closing parenthesis. ``` :) (smile) :) :)
```
### Example 3: Using the `aria-label` and `role="img"` properties
Adding the `role="img"` property to the ASCII content's containing element defines it as an image, and the `aria-label` property gives it the required text alternative. Skip to the next ASCII example.
```
Figure 1: ASCII art picture of a butterfly. Skip ASCII butterfly image
New content after the ASCII image.
``` ### Example 5: Marking up Leetspeak The following is Leetspeak for "Austin Rocks". ``` Au5t1N r0xx0rz ``` ## Related Resources *No endorsement implied.* - [ARIA Recommendation](https://www.w3.org/TR/wai-aria/) . - [Accessible Name and Description Computation](https://www.w3.org/TR/accname/) . ## Tests ### Procedure 1. Check to see that the content contains emojis, emoticons, ASCII art, or leetspeak. 2. Check that each emoji has a text alternative that serves an equivalent purpose. 3. Check that each ASCII artwork, emoticon, and / or Leetspeak either: 1. is marked up as an image with a text alternative that serves an equivalent purpose; or 2. has a text alternative immediately before or after. ### Expected Results - Checks #2 and #3 are true. Back to Top