Appendix B. HTML Character Entities
To display symbols and characters beyond the collection of common ASCII alphanumeric values (0–127), browsers recognize a special coding that lets you insert such characters into HTML document content. These entity characters start with an ampersand symbol (&) and end with a semicolon (;). Between those symbols goes a representation of the desired character in your choice of letters or numbers. For example, the numeric entity value for a copyright symbol is 169. An HTML statement using that symbol looks as follows:
<p style="text-align: center">©2002 MegaCorp, Inc. All Rights Reserved.</p>
Because the numbering system is not easy to remember, entities also have case-sensitive word or abbreviation equivalents for their values. For the copyright symbol, for example, the entity is ©. This makes the code more readable, as in the following:
<p style="text-align: center">©2002 MegaCorp, Inc. All Rights Reserved.</p>
This table lists every entity defined in the HTML 4 specification in alphabetical order. Recent browsers support the vast majority of these characters, but the user’s operating system version and its internal character set also influence whether a visitor’s browser will render any particular character.
|
Alpha entity |
Numeric entity |
Character |
Description |
|
|
|
Á |
Capital letter A with acute |
|
|
|
á |
Small letter a with acute |
|
|
|
 |
Capital letter A with circumflex |
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access