HTML entities are codes that represent characters or symbols that are not included in the standard ASCII character set. They are used to display special characters such as accented letters, trademark symbols, and mathematical symbols in HTML documents.
HTML entities begin with an ampersand (&) and end with a semicolon (;). They can be used in both HTML and XHTML documents.
Here are some commonly used HTML entities:
- < represents the less-than symbol (<)
- > represents the greater-than symbol (>)
- & represents the ampersand symbol (&)
- ” represents the double quote symbol (“)
- ‘ represents the single quote symbol (‘)
- © represents the copyright symbol (©)
- ® represents the registered trademark symbol (®)
- ™ represents the trademark symbol (™)
There are many other HTML entities available for various special characters and symbols. You can find a complete list of HTML entities and their corresponding codes in the HTML entity reference.