You are on page 1of 2

HTML Special Characters

If you wish to have some characters to display in html, you use special codes for them.

Character Entity Name Description


" " quotation mark
' ' apostrophe
& & ampersand
< &lt; less-than
> &gt; greater-than
&nbsp; Space.
π &pi; pi
∴ &there4; therefore
∞ &infin; infinity
√ &radic; square root
™ &trade; trademark
© &copy; copyright
° &deg; degree
№ &numero; number

Example:
Copy and paste the following code to see how it works out.

<!DOCTYPE html>
<head>
<title> HTML Special Characters</html>
</head>
<body>
<h2>Special Characters</h2>
This is how the special characters work:<br />
To display the angle brackets : &lt; with &gt;

</body>
</html>

You might also like