HTML Entities & Character References
HTML character references provide a way to represent characters that may be difficult to type, have a special meaning in HTML, or are more conveniently written using a character name or numeric code. They can be used for punctuation, mathematical symbols, currency signs, arrows, accented letters, technical symbols, and many other characters.
This reference organizes characters into categories so they are easier to find. Individual reference pages include the displayed character along with available named character references, decimal character references, and hexadecimal character references.
HTML Character References
HTML character references represent characters using text sequences that begin with an ampersand (&). They are especially important when a character would otherwise be interpreted as part of HTML markup.
For example, the less-than character (<) normally begins an HTML tag. To display it as text, it can be written using the named character reference < or a numeric character reference.
<p>5 < 10</p>
5 < 10
Character Reference Types
HTML supports named and numeric character references. Numeric references can be written using either decimal or hexadecimal values.
| Type | Example | Description |
|---|---|---|
| Named | & |
Uses a predefined HTML character name. |
| Decimal | & |
Uses the character's Unicode code point written as a decimal number. |
| Hexadecimal | & |
Uses the character's Unicode code point written as a hexadecimal number. |
All three examples above represent the ampersand character (&).
Common HTML Entities
Some character references are used frequently because their characters have special meaning in HTML or are commonly needed in webpage content.
| Character | Named | Decimal | Hexadecimal | Description |
|---|---|---|---|---|
| & | & |
& |
& |
Ampersand |
| < | < |
< |
< |
Less-than sign |
| > | > |
> |
> |
Greater-than sign |
| " | " |
" |
" |
Quotation mark |
| ' | ' |
' |
' |
Apostrophe |
|
  |
  |
Non-breaking space | |
| © | © |
© |
© |
Copyright sign |
| ® | ® |
® |
® |
Registered sign |
| ™ | ™ |
™ |
™ |
Trademark sign |
Character Categories
Use the following reference pages to browse characters and symbols by category.
| Reference | Description |
|---|---|
| Latin Characters | Latin letters, accented characters, and related characters. |
| Greek Characters | Greek letters and related characters. |
| Cyrillic Characters | Cyrillic letters and related characters. |
| Arabic Scripts | Arabic-script characters and related symbols. |
| Indic Scripts | Characters used by Indic writing systems. |
| CJK & East Asian Characters | Characters and symbols used in Chinese, Japanese, Korean, and other East Asian writing systems. |
| Non-Latin Characters | Additional characters from writing systems outside the Latin alphabet. |
| Ancient Scripts | Characters from historical and ancient writing systems. |
| Egyptian Hieroglyphs | Unicode characters representing Egyptian hieroglyphs. |
| Currency Symbols | Currency signs and monetary symbols. |
| Math Symbols | Mathematical operators, relations, and other mathematical symbols. |
| Arrows | Directional arrows and related arrow symbols. |
| Punctuation | Punctuation marks, quotation marks, dashes, and related characters. |
| Technical Symbols | Technical, computing, control, and miscellaneous specialized symbols. |
| Letterlike Symbols | Symbols whose appearance or meaning is based on letters. |
| Geometric Shapes | Squares, circles, triangles, diamonds, and other geometric symbols. |
| Box Drawing & Block Elements | Line-drawing characters, blocks, shades, and related graphical characters. |
| Astrological & Weather Symbols | Astrological, astronomical, and weather-related symbols. |
| Game Symbols | Playing cards, chess pieces, dice, and other game-related symbols. |
| Other Symbols | Additional symbols that do not fit within the other reference categories. |
Using Character References
A character can usually be entered directly into an HTML document when the document uses UTF-8 encoding. Character references remain useful when displaying characters that have special meaning in HTML, when a character is difficult to enter directly, or when using a reference makes the source code clearer.
Named character references begin with an ampersand and normally end with a semicolon. Numeric character references begin with &# for decimal values or &#x for hexadecimal values.
<p>Copyright © Example Website</p>
<p>Euro: €</p>
<p>Right arrow: →</p>
<p>5 < 10</p>
Copyright © Example Website
Euro: €
Right arrow: →
5 < 10
