logo

modern front end tech

html entities and charsets

in this chapter you are going to learn

  1. entities
  2. symbols
  3. emojis
  4. charsets

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:

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:

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:

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

charsets graph

kind of html charsets

Here are some common HTML charsets:

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.