HTML Symbols
Find common HTML symbols, named character references, decimal codes, hexadecimal codes, punctuation, arrows, spaces, and special characters.
HTML character references let you represent
reserved characters, symbols, punctuation,
and invisible spacing characters in HTML source.
A modern UTF-8 document can contain most characters
directly, but references such as
&,
<,
and
remain useful when a character has special meaning
in HTML or needs to be represented explicitly.
Common HTML Symbols
The table below includes common symbols and the source forms typically used to represent them in HTML.
| Symbol | Named | Decimal | Hex | Meaning |
|---|---|---|---|---|
| & |
&
|
&
|
&
|
Ampersand |
| < |
<
|
<
|
<
|
Less-than sign |
| > |
>
|
>
|
>
|
Greater-than sign |
| " |
"
|
"
|
"
|
Double quotation mark |
| ' |
'
|
'
|
'
|
Apostrophe |
| © |
©
|
©
|
©
|
Copyright |
| ® |
®
|
®
|
®
|
Registered trademark |
| ™ |
™
|
™
|
™
|
Trademark |
| • |
•
|
•
|
•
|
Bullet |
| … |
…
|
…
|
…
|
Ellipsis |
| – |
–
|
–
|
–
|
En dash |
| — |
—
|
—
|
—
|
Em dash |
|
 
|
 
|
Non-breaking space |
Names such as
© and
—
are commonly called
HTML entities.
In modern HTML terminology they are
named character references.
Four Ways to Write a Symbol
A Unicode character can often be written directly or represented using a named, decimal, or hexadecimal character reference. All four examples below produce the same copyright character.
Write the Unicode character directly in a UTF-8 document.
Uses a readable predefined character name.
Uses the Unicode code point written as a decimal number.
Uses the Unicode code point written in hexadecimal.
In a UTF-8 document, direct characters are usually fine for ordinary text. Named references can make reserved or invisible characters easier to recognize in source code, while numeric references can represent Unicode characters even when no convenient named reference exists.
Reserved HTML Characters
Some characters participate directly in HTML syntax. Character references are especially important when those characters need to appear as ordinary text.
| Character | Reference | Why It Matters |
|---|---|---|
| & |
&
|
Begins character references, so it may need escaping when displayed literally. |
| < |
<
|
Begins HTML tags and markup. |
| > |
>
|
Ends tags. It can often appear literally in text, but escaping it can improve clarity in code examples. |
| " |
"
|
Must be handled when a double quote appears inside a double-quoted attribute value. |
| ' |
'
|
Must be handled when an apostrophe appears inside a single-quoted attribute value. |
To display markup such as
<div>
on a page without creating an actual element,
encode the angle brackets as
< and
>.
Typography & Punctuation
HTML character references are useful for typographic marks that are difficult to type or that need to remain visually consistent in source code.
| Symbol | Named | Decimal | Name |
|---|---|---|---|
| – |
–
|
–
|
En dash |
| — |
—
|
—
|
Em dash |
| ‘ |
‘
|
‘
|
Left single quotation mark |
| ’ |
’
|
’
|
Right single quotation mark |
| “ |
“
|
“
|
Left double quotation mark |
| ” |
”
|
”
|
Right double quotation mark |
| … |
…
|
…
|
Ellipsis |
| • |
•
|
•
|
Bullet |
An em dash, en dash, hyphen, straight quote, and typographic quote are different Unicode characters. Choose the character that matches the intended typography rather than relying on visual similarity.
Math, Currency & Legal Symbols
| Symbol | Named | Decimal | Name |
|---|---|---|---|
| ¢ |
¢
|
¢
|
Cent |
| £ |
£
|
£
|
Pound sterling |
| ¥ |
¥
|
¥
|
Yen |
| € |
€
|
€
|
Euro |
| ± |
±
|
±
|
Plus-minus |
| × |
×
|
×
|
Multiplication |
| ÷ |
÷
|
÷
|
Division |
| ≠ |
≠
|
≠
|
Not equal |
| ≤ |
≤
|
≤
|
Less than or equal |
| ≥ |
≥
|
≥
|
Greater than or equal |
| ∞ |
∞
|
∞
|
Infinity |
| © |
©
|
©
|
Copyright |
| ® |
®
|
®
|
Registered trademark |
| ™ |
™
|
™
|
Trademark |
HTML Arrow Symbols
←
Left arrow.
Decimal code:
←.
↑
Up arrow.
Decimal code:
↑.
→
Right arrow.
Decimal code:
→.
↓
Down arrow.
Decimal code:
↓.
↔
Left-right arrow.
Decimal code:
↔.
An arrow or symbol used as an interface control still needs an accessible name. The character itself does not automatically communicate the control's purpose to assistive technology.
HTML Spaces
Several character references represent spacing characters that behave differently from an ordinary keyboard space.
| Reference | Decimal | Character | Use |
|---|---|---|---|
|
 
|
Non-breaking space | Prevents a normal line break between adjacent content. |
 
|
 
|
En space | Typographic space approximately the width of an en. |
 
|
 
|
Em space | Typographic space approximately the width of an em. |
 
|
 
|
Thin space | Narrow typographic spacing. |
Repeating
to push content across a page is not
a reliable layout technique. Use CSS
padding, margins, gaps, grid, or flexbox
for visual spacing.
Using HTML Symbols Correctly
Declare UTF-8 with
<meta charset="UTF-8">
and ensure the document is served
using the correct encoding.
Encode characters such as
< and
&
when they would otherwise be interpreted
as HTML syntax.
Write complete references such as
©
rather than relying on legacy cases
where the semicolon may be omitted.
A character reference identifies a character, but the user's font still needs a matching glyph to display it.
Direct Character or Reference?
| Situation | Recommended Approach |
|---|---|
| Normal Unicode text | Direct UTF-8 characters are generally appropriate. |
| Reserved HTML syntax | Use the appropriate character reference. |
| Invisible spacing character |
A named reference such as
makes the source easier to understand.
|
| Character with no memorable name | Use a decimal or hexadecimal numeric reference when needed. |
| Page layout spacing | Use CSS rather than repeated spacing characters. |
A named or numeric reference identifies a Unicode character. It does not determine the exact visual design of that character. Appearance depends on the font and rendering environment.
HTML Symbol Questions
What is an HTML entity?
The phrase HTML entity
is commonly used for named character
references such as
© or
&.
Character references allow HTML source
to represent reserved characters,
symbols, and other Unicode characters.
Do I need to use © instead of ©?
No. In a properly encoded UTF-8
HTML document, you can normally write
© directly. The forms
©,
©, and
©
represent the same character.
How do I display a less-than sign in HTML?
Use <
when a less-than sign needs to appear
as text rather than being interpreted
as the beginning of HTML markup.
What does mean?
represents a non-breaking space.
It displays spacing while preventing
a normal line break at that position.
What is the difference between decimal and hexadecimal HTML codes?
Both identify a Unicode code point.
Decimal references use base 10,
such as ©.
Hexadecimal references use base 16,
such as ©.
Do HTML character references need a semicolon?
The safest practice is to include the terminating semicolon. Although HTML has some legacy parsing cases where it can be omitted, complete references are clearer and avoid ambiguous source code.
Why does a symbol sometimes display as an empty square?
The character may be valid while the selected font lacks a glyph for it. Character references identify characters; they do not guarantee that every font can visually render them.