An HTML entity is a piece of text ("string") that begins with an ampersand (&) and ends with a semicolon (;). HTML entities are used to represent reserved or special characters in HTML. For instance, the less-than sign (<) is represented as < and the greater-than sign (>) as >. These entities ensure that the HTML code is parsed correctly by the browser or email client.