HTML special characters
adding non-alphanumeric text
At least two kinds of special characters exist in HTML:
Entities
characters which do not appear on all keyboards; or
characters that would interfere with HTML code such as
<
and>
Emoji
icons that no longer consist of image files but text-like characters ๐
Entities
There are two ways to encode entities:
Common entities include:
non-breaking space*
 
<
less than
<
<
>
greater than
>
>
&
ampersand
&
&
ยข
cent
¢
¢
โฌ
euro
€
€
ยฃ
pound
£
£
ยฉ
copyright
©
©
ยฎ
registered trademark
®
®
โข
trademark
™
™
Remember that when HTML entities by name are case sensitive!
i.e. €
will work but not &Euro;
Emoji
Emoji are just symbols like $ or ยข and we can simply input them using:
an emoji keyboard (
control + command + space
on a Mac)HTML entity code (such as
😄
for ๐)
We also need to ensure that the <head>
contains this line of code for emoji to appear on the page:
Last updated