ASCII

FilterChars

ASCII Character Set

HTML and XHTML documents use the standard 7-bit ASCII character set in their source. The first 31 characters in ASCII (not listed) are such device controls as backspace () and carriage return (
) and are not appropriate for use in HTML documents.

HTML 4.01 defines only four entities in this character range—less than (<,&lt;), greater than (<, &gt;), ampersand (&, &amp;), and quotation mark (", &quot;)—that are necessary for escaping characters that may be interpreted as markup.

XHTML also includes the &apos; entity. In XHTML documents, the ampersand symbol (&) must always be escaped in attribute values.

NCR
Entity
Description
&#032; Space
! &#033; Exclamation point
" &#034; &quot; Quotation mark
# &#035; Octothorpe
$ &#036; Dollar symbol
% &#037; Percent symbol
& &#038; &amp; Ampersand
' &#039; &apos;
(XML/XHTML only)
Apostrophe (single quote)
( &#040; Left parenthesis
) &#041; Right parenthesis
* &#042; Asterisk
+ &#043; Plus sign
, &#044; Comma
- &#045; Hyphen
. &#046; Period
/ &#047; Slash
0–9 &#048;–
&#057;
Digits 0–9
: &#058; Colon
; &#059; Semicolon
< &#060; &lt; Less than
= &#061; Equals sign
> &#062; &gt; Greater than
? &#063; Question mark
@ &#064; Commercial at sign
A–Z &#065;–
&#090;
Letters A–Z
[ &#091; Left square bracket
\ &#092; Backslash
] &#093; Right square bracket
^ &#094; Caret
_ &#095; Underscore
` &#096; Grave accent (no letter)
a–z &#097;–
&#122;
Letters a–z
{ &#123; Left curly brace
| &#124; Vertical bar
} &#125; Right curly brace
~ &#126; Tilde