HTML Entity
HTML entities are special codes used to represent characters that have a specific meaning in HTML or are not easily typable on a keyboard. These codes ensure that the characters are displayed correctly in web browsers. They start with an ampersand (&) and end with a semicolon (;). Here are some common examples:
-
Basic Characters:
< for < (less-than sign)
> for > (greater-than sign)
& for & (ampersand)
-
Special Characters:
© for © (copyright symbol)
® for ® (registered trademark symbol)
€ for € (euro sign)
-
Non-Printable Characters:
for a non-breaking space
« for « (left double angle quotation mark)
» for » (right double angle quotation mark)
HTML entities are useful for including characters in your web content that might otherwise be interpreted as HTML code or that are not readily available on a keyboard.