What happens when you want to show a less-than sign on your page? If you just type <, the browser thinks it is the start of a tag. That is where HTML entities come in โ special codes that let you display reserved characters safely.
Why You Need Entities
HTML reserves certain characters for its own syntax: <, >, &, and ". If you want to display them as text, you have to escape them using entity codes. Otherwise the browser interprets them as part of an HTML tag or attribute.
<p>The <html> tag is the root of every page.</p>
Try it Yourself โ
Common Entities
Here are the ones you will use most often: & for ampersand, < for less-than, > for greater-than, " for double quote, for a non-breaking space, and © for the copyright symbol.
<p>You & me โ always.</p>
<p>Price: $10 In stock</p>
<p>© 2026 My Company</p>
Non-Breaking Space
is a space that prevents the browser from breaking the line at that point. Use it when you want two words to stay together โ like "10 kg" or "Mr. Smith". Regular spaces can break across lines, but will not.
Numeric Entities
You can also use numeric references like © for copyright or € for the euro sign. Named entities are easier to remember, but numeric ones work everywhere, including older browsers.