What are HTML Entities?

What are HTML Entities?

Some characters are used to write the syntax in HTML. Such as greater than sign( > ), less than sign( < ), forward slash ( / ) etc. are used in the syntax of the tabs. These characters are called reserved characters. When these reserved characters are used as text then a problem arises that the browser can interpret that as a character or as a syntax symbol. To solve this problem every reserved character was given a name which can be written when we want to write the characters as text. These names are called HTML entities. HTML entities start with "&" and end with ";". By using HTML entities, the browsers can easily distinguish whether the character is used as syntax or as text.

Example -

HTML entity for ">" is ">"

HTML entity for "<" is "<"

HTML entity for "&" is "&"