HTML - Entities
HTML entities are special codes used to represent reserved characters, symbols, and special characters that have specific meanings in HTML. By using HTML entities, you can display these characters on a web page without the browser interpreting them as HTML markup. Here are some commonly used HTML entities:
Character Entities:
- < or <: Represents the less-than symbol (<).
- > or >: Represents the greater-than symbol (>).
- & or &: Represents the ampersand symbol (&).
- " or ": Represents the double quotation mark (").
- ' or ': Represents the single quotation mark (').
Special Characters:
- or  : Represents a non-breaking space.
- © or ©: Represents the copyright symbol (©).
- ® or ®: Represents the registered trademark symbol (®).
- ™ or ™: Represents the trademark symbol (™).
Mathematical and Greek Symbols:
- + or +: Represents the plus symbol (+).
- − or −: Represents the minus symbol (-).
- × or ×: Represents the multiplication symbol (×).
- ÷ or ÷: Represents the division symbol (÷).
- π or π: Represents the mathematical pi symbol (π).
- δ or δ: Represents the Greek letter delta (Δ).
Accented Characters:
- é or é: Represents the lowercase e with acute accent (é).
- ö or ö: Represents the lowercase o with umlaut (ö).
- ç or ç: Represents the lowercase c with cedilla (ç).
These are just a few examples of HTML entities. There are many more entities available to represent various characters and symbols. You can find a comprehensive list of HTML entities and their corresponding codes in the HTML specification or online resources.
To use an HTML entity, you can either use the entity name (e.g., ©) or the decimal numeric code (e.g., ©). The entity or code is placed directly within the HTML content where you want the corresponding character or symbol to appear.