HTML entities are special codes that represent characters in HTML. These codes begin with an ampersand (&) and end with a semicolon (;). They are used to display characters that have special meaning in HTML, such as the less-than (<) and greater-than (>) symbols.