Entity
Note:
Many characters have memorable entities. For example, the entity for the copyright symbol (©
) is ©
. For less memorable characters, such as —
or —
, you can use a reference chart
or decoder tool
.
Reserved characters
Some special characters are reserved for use in HTML, meaning that your browser will parse them as HTML code. For example, if you use the less-than (<
) sign, the browser interprets any text that follows as a tag
.
To display these characters as text, replace them with their corresponding character entities, as shown in the following table.
Character | Entity | Note |
---|---|---|
& |
&
|
Interpreted as the beginning of an entity or character reference. |
< |
<
|
Interpreted as the beginning of a tag |
> |
>
|
Interpreted as the ending of a tag |
" |
"
|
Interpreted as the beginning and end of an attribute 's value. |
|
Interpreted as the non breaking space. | |
– |
–
|
Interpreted as the en dash (half the width of an em unit). |
— |
—
|
Interpreted as the em dash (equal to width of an "m" character). |
© |
©
|
Interpreted as the copyright sign. |
® |
®
|
Interpreted as the registered sign. |
™ |
™
|
Interpreted as the trademark sign. |
≈ |
≈
|
Interpreted as almost equal to sign. |
≠ |
≠
|
Interpreted as not equal to sign. |
£ |
£
|
Interpreted as the pound symbol. |
€ |
€
|
Interpreted as the euro symbol. |
° |
°
|
Interpreted as the degree symbol. |