HTML Symbols
HTML allows symbols that are not present on your keyboard.
Symbols include mathematical, currency, technical symbols that are not available on a normal keyboard.
In order to add a symbol to HTML, we need to use its entity name or its number (which can be decimal or hexadecimal).
Reference
Refer to the below URL for the list of all the symbols and their entity, decimal, and hexadecimal values.
Using symbol's entity name
All the entity names start with a &
character as shown below.
<p>Euro symbol displayed using entity name €</p>
Using symbol's decimal number
All the decimal values start with &#
as shown below.
<p>Euro symbol displayed using decimal value €</p>
Using symbol's hexadecimal number
All the hexadecimal values start with &#x
as shown below.
<p>Euro symbol displayed using hexadecimal value €</p>
Examples
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>HTML Symbols</h1>
<p>Euro symbol displayed using entity name €</p>
<p>Euro symbol displayed using decimal value €</p>
<p>Euro symbol displayed using hexadecimal value €</p>
</body>
</html>
Overall
It's easy to include various symbols, that are not available on a normal keyboard, into an HTML document.