Appendix F. Character Entities

The following table lists the defined standard and proposed character entities for HTML and XHTML, as well as several that are nonstandard but generally supported.

Entity names, if defined, appear for their respective characters and can be used in the character-entity sequence &name; to define any character for display by the browser. Otherwise, or alternatively for named characters, use the character’s three-digit numeral value in the sequence &#nnn; to specially define a character entity. Actual characters, however, may or may not be displayed by the browser, depending on the computer platform and user-selected font for display.

Not all 256 characters in the International Organization for Standardization (ISO) character set appear in the table. Missing ones are not recognized by the browser as either named or numeric entities.

To be sure that your documents are fully compliant with the HTML 4.0 and XHTML 1.0 standards, use only those named character entities with no entries in the Conformance column. Characters with a value of “!!!” in the Conformance column are not formally defined by the standards; use them at your own risk.

Numeric entity

Named entity

Symbol

Description

Conformance

	

  

Horizontal tab

 




  

Line feed

 



  

Carriage return

 

 

  

Space

 

!

 

!

Exclamation point

 

"

"

"

Quotation mark

 

#

 

#

Hash mark

 

$

 

$

Dollar sign

 

%

 

%

Percent sign

 

&

&

&

Ampersand

 

'

 

'

Apostrophe

 

(

 

(

Left parenthesis

 

)

 

)

Right parenthesis ...

Get HTML & XHTML: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.