Exploring HTML Entities: Special Characters and Symbols in HTML
HTML entities are special characters that have a specific meaning in HTML, and are used to display or represent certain characters, symbols, or special characters in a web page.
Some common HTML entities include:
<: represents the less-than sign (<)>: represents the greater-than sign (>)&: - represents the ampersand (&)": - represents the double quotation mark (")': represents the single quotation mark (')
These entities are used to ensure that special characters are displayed correctly in the browser.
As an example:
- if you want to display the symbol for a trademark (™), you can use the HTML entity ™.
Some Impotant HTML Entities
| Character Entity | Symbol | Description |
|---|---|---|
  | Non-breaking space | |
& | & | Ampersand |
< | < | Less-than sign |
> | > | Greater-than sign |
¢ | ¢ | Cent sign |
£ | £ | Pound sign |
¥ | ¥ | Yen sign |
&euro | € | Euro sign |
© | © | Copyright symbol |
® | ® | Registered trademark symbol |
&trade | ™ | Trademark symbol |
&dagger | † | Dagger |
&Dagger | ‡ | Double dagger |
§ | § | Section symbol |
¶ | ¶ | Pilcrow (paragraph sign) |
&hellip | … | Horizontal ellipsis |
&ndash | – | En dash |
&mdash | — | Em dash |
&lsquo | ‘ | Left single quotation mark |
&rsquo | ’ | Right single quotation mark |
&ldquo | “ | Left double quotation mark |
&rdquo | ” | Right double quotation mark |
Combining Diacritical Marks
Here are some HTML entities that you can use to add combining diacritical marks to characters
| Character | HTML Entity | Description |
|---|---|---|
| é | é | Small letter E with acute accent |
| è | è | Small letter E with grave accent |
| ê | ê | Small letter E with circumflex accent |
| ë | ë | Small letter E with diaeresis |
| ē | ē | Small letter E with macron |
| ñ | ñ | Small letter N with tilde |
| ō | ō | Small letter O with macron |
| ı̇ | ı̈ | Small letter I with dot above and diaeresis |
| ï | ï | Small letter I with diaeresis |
| ü | ü | Small letter U with diaeresis |
| ū | ū | Small letter U with macron |
| ǎ | ă | Small letter A with breve |
| ċ | ċ | Small letter C with dot above |
| ḍ | &ddot; | Small letter D with dot below |
| ġ | ġ | Small letter G with dot above |
| ḥ | &hdot; | Small letter H with dot below |
| ḳ | &kdot; | Small letter K with dot below |
| ḷ | &ldot; | Small letter L with dot below |
| ṃ | &mdot; | Small letter M with dot below |
| ṇ | &ndot; | Small letter N with dot below |
| ř | ŕ | Small letter R with caron |
| ś | ś | Small letter S with acute accent |
| ṣ | ⋅ | Small letter S with dot below |
| ṭ | ⃛ | Small letter T with dot below |
| ů | ů | Small letter U with ring above |