Section C.1. ASCII Character Set


C.1. 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 that is included in every XML language. In XHTML documents, the ampersand symbol (&) must always be escaped in attribute values. For better compatibility with XML parsers, authors should use numerical character references instead of named character references for all other character entities.

Decimal

Hex

Entity

Symbol

Description

&#032;

&#x20;

  

Space

&#033;

&#x21;

 

!

Exclamation point

&#034;

&#x22;

&quot;

"

Quotation mark

&#035;

&#x23;

 

#

Octothorpe

&#036;

&#x24;

 

$

Dollar symbol

&#037;

&#x25;

 

%

Percent symbol

&#038;

&#x26;

&amp;

&

Ampersand

&#039;

&#x27;

XML/XHTML only: &apos;

'

Apostrophe (single quote)

&#040;

&#x28;

 

(

Left parenthesis

&#041;

&#x29;

 

)

Right parenthesis

&#042;

&#x2A;

 

*

Asterisk

&#043;

&#x2B;

 

+

Plus sign

&#044;

&#x2C;

 

,

Comma

&#045;

&#x2D;

 

-

Hyphen

&#046;

&#x2E;

 

.

Period

&#047;

&#x2F;

 

/

Slash

&#048;- &#057;

&#x30;- &#x39;

 

0-9

Digits 0-9

&#058;

&#x3A;

 

:

Colon

&#059;

&#x3B;

 

;

Semicolon

&#060;

&#x3C;

&lt;

<

Less than

&#061;

&#x3D;

 

=

Equals sign

&#062;

&#x3E;

&gt;

>

Greater than

&#063;

&#x3F;

 

?

Question mark

&#064;

&#x40;

 

@

Commercial at sign

&#065;- &#090;

&#x41;- &#x5A;

 

A-Z

Letters A-Z

&#091;

&#x5B;

 

[

Left square bracket

&#092;

&#x5C;

 

\

Backslash

&#093;

&#x5D;

 

]

Right square bracket

&#094;

&#x5E;

 

^

Caret

&#095;

&#x5F;

 

_

Underscore

&#096;

&#x60;

 

`

Grave accent (no letter)

&#097;- &#122;

&#x61;- &#x7A;

 

a-z

Letters a-z

&#123;

&#x7B;

 

{

Left curly brace

&#124;

&#x7C;

 

|

Vertical bar

&#125;

&#x7D;

 

}

Right curly brace

&#126;

&#x7E;

 

~

Tilde





Web Design in a Nutshell
Web Design in a Nutshell: A Desktop Quick Reference (In a Nutshell (OReilly))
ISBN: 0596009879
EAN: 2147483647
Year: 2006
Pages: 325

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net