html entities
HTML entities are special codes that are used to represent characters that have a special meaning in HTML or characters that are not easily typed on a keyboard. Entities are used to display reserved characters, special symbols, and characters from different languages.
how to use html entities
To use HTML entities, you need to know the specific code for the character you want to display. Entities are typically written using an ampersand (&) followed by a code and ending with a semicolon (;). For example, to display the less-than symbol (<), you would use the entity <.
common html entities
Here are some common HTML entities:
- & - Ampersand (&)
- < - Less-than sign (<)
- > - Greater-than sign (>)
- " - Double quotation mark (")
- ' - Single quotation mark (')
- - Non-breaking space
html symbols
HTML symbols are special characters that are used to represent various mathematical, technical, and typographical symbols in HTML documents. These symbols are often used in scientific and technical writing, as well as in mathematical equations and formulas.
how to use html symbols
To use HTML symbols, you can either use their corresponding entities or their Unicode values. For example, to display the copyright symbol (©), you can use the entity © or the Unicode value ©.
common html symbols
Here are some common HTML symbols:
- © - Copyright symbol (©)
- ® - Registered trademark symbol (®)
- € - Euro currency symbol (€)
- £ - Pound sterling symbol (£)
- ¥ - Yen currency symbol (¥)
- ™ - Trademark symbol (™)
html emojis
HTML emojis are graphical representations of emotions, objects, and symbols that can be used in HTML documents. Emojis are widely used in digital communication to convey emotions and add visual interest to text.
how to use html emojis
To use HTML emojis, you can either use their corresponding entities or their Unicode values. For example, to display the smiling face emoji (😊), you can use the Unicode value 😊.
common html emojis
Here are some common HTML emojis:
- 😀 - Grinning face (??)
- 😃 - Smiling face with open mouth (??)
- 😄 - Smiling face with open mouth and smiling eyes (??)
- 😊 - Smiling face with smiling eyes (??)
- 😍 - Smiling face with heart-eyes (??)
- 😜 - Face with stuck-out tongue and winking eye (??)
html charsets
HTML charsets (character sets) are used to define the encoding of characters in an HTML document. A charset specifies how characters are represented in bytes, allowing web browsers to correctly display text in different languages and scripts.
charsets graph
growth of different charsets
kind of html charsets
Here are some common HTML charsets:
- UTF-8: A widely used charset that supports a large number of characters from different languages.
- ISO-8859-1: Also known as Latin-1, this charset supports Western European languages.
- UTF-16: A charset that uses 16-bit encoding to represent characters, allowing for a larger range of characters.
- ASCII: A basic charset that represents English characters and control codes using 7-bit encoding.
tip
This chapter mentions common symbols, entities, emojis, and charsets. If you need another emoji or symbol, search for the exact entity or Unicode value before adding it to your page.