Html Entities

An HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ). Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces)

for example we cant directly write greater than or less than symbol in the code there is a specific code for displaying "<" and ">" in the website and this is > and < respectively .

Now a question might be coming on your head that why shouldn't we directly write
"<" and ">" this is because these two symbols are reserved for tags . So web browser will be confused if this symbol is for tags or this symbol is for displaying something .