What are HTML Entities?

1 min read

HTML Entities
Some reserved characters are reserved in HTML.
If you use the less than(<) or greater than(>) signs in your text, the browser might mix them with tags.
Character entities are used to display reserved characters in HTML.
Ex: &entity_name;
(or)
&#entity_number;0=
To display a less than sign(<) we must write: < or <
Advantages of using an entity name
-> An entity name is easy to remember.
Disadvantage of using an entity_number
-> Browsers may not support all entity names, but the support for entity numbers is good.
0
Subscribe to my newsletter
Read articles from Biswojit Bal directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Biswojit Bal
Biswojit Bal
I am learning on Fullstack Web Development.