Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[a] (0) Include a note about the dangers of ASCII art.
git-svn-id: http://svn.whatwg.org/webapps@3271 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 16, 2009
1 parent 6244943 commit a09e73e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 9 additions & 2 deletions index
Expand Up @@ -12788,9 +12788,16 @@ Sydney&lt;/p&gt;</pre>
<li>Including fragments of computer code, with structure indicated
according to the conventions of that language.</li>

<li>Displaying ASCII art.</li> <!-- XXX need a note about non-visual UAs -->
<li>Displaying ASCII art.</li>

</ul><p>To represent a block of computer code, the <code><a href=#the-pre-element>pre</a></code>
</ul><p class=note>Authors are encouraged to consider how preformatted
text will be experienced when the formatting is lost, as will be the
case for users of speech synthesizers, braille displays, and the
like. For cases like ASCII art, it is likely that an alternative
presentation, such as a textual description, would be more
universally accessible to the readers of the document.</p>

<p>To represent a block of computer code, the <code><a href=#the-pre-element>pre</a></code>
element can be used with a <code><a href=#the-code-element>code</a></code> element; to represent a
block of computer output the <code><a href=#the-pre-element>pre</a></code> element can be used
with a <code><a href=#the-samp-element>samp</a></code> element. Similarly, the <code><a href=#the-kbd-element>kbd</a></code>
Expand Down
9 changes: 8 additions & 1 deletion source
Expand Up @@ -13517,10 +13517,17 @@ Sydney&lt;/p&gt;</pre>
<li>Including fragments of computer code, with structure indicated
according to the conventions of that language.</li>

<li>Displaying ASCII art.</li> <!-- XXX need a note about non-visual UAs -->
<li>Displaying ASCII art.</li>

</ul>

<p class="note">Authors are encouraged to consider how preformatted
text will be experienced when the formatting is lost, as will be the
case for users of speech synthesizers, braille displays, and the
like. For cases like ASCII art, it is likely that an alternative
presentation, such as a textual description, would be more
universally accessible to the readers of the document.</p>

<p>To represent a block of computer code, the <code>pre</code>
element can be used with a <code>code</code> element; to represent a
block of computer output the <code>pre</code> element can be used
Expand Down

0 comments on commit a09e73e

Please sign in to comment.