What Are HTML Entities?
HTML entities are specialized character references used in HTML and XML documents to represent characters that would otherwise be interpreted by browsers as syntax markup. Characters such as the less-than symbol (<), greater-than symbol (>), and ampersand (&) have reserved grammatical meanings in HTML (opening/closing tags and starting entity sequences).
When you want browsers to display these symbols as visible text rather than executable markup, they must be converted into their respective entity representations—either as named entities (such as < for <) or numeric entities (such as <).