SIA-R79Preformatted text represents either code or a figure
This rule is not required for conformance to any accessibility requirements.
This rule checks that preformatted text is used either to represent computer code or inside a figure
This rule makes no assumptions.
This rule has no known accessibility support concerns.
<figure aria-label="Shrug emoji in ASCII art"> <pre aria-hidden="true">¯\_(ツ)_/¯</pre> </figure>
<pre> <code> console.log("Hello world"); </code> </pre>
<pre> <samp>You are in a room with a door and a desk.</samp> <kbd>Open door</kbd> <samp>The door is locked. You are in a room with a door and a desk.</samp> </pre>
<pre> element is only exposed to assistive technologies:
<figure><pre style="position: absolute; left: -9999px">¯\_(ツ)_/¯</pre></figure>
<pre> element is not rendered:
This page contains no