Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Entities | Advanced Text Formatting Elements
Introduction to HTML

bookEntities

In HTML, entities are special characters used to represent certain symbols or characters that cannot be directly typed into the source code. A special code represents entities called an entity reference, which consists of an ampersand (&) followed by a name or number, and ends with a semicolon (;).

For example, the &lt; entity reference represents the less-than symbol (<) and is used to display the symbol in HTML without actually using the symbol in the source code.

index.html

index.html

copy

Here are some examples of how to use these entity references:

  • The &gt;: >
  • The &amp;: &
  • The &quot;: "
  • The &apos;: '
  • The &nbsp;: (space).

In addition to the common entity references, several other entity references are available in HTML that can be used to represent a wide range of characters and symbols. For example, you can use the &#8217; entity reference to represent the right single quotation mark (’) character or the &#x2605; entity reference to represent the star symbol (★).

index.html

index.html

copy

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 5

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Awesome!

Completion rate improved to 3.45

bookEntities

Stryg for at vise menuen

In HTML, entities are special characters used to represent certain symbols or characters that cannot be directly typed into the source code. A special code represents entities called an entity reference, which consists of an ampersand (&) followed by a name or number, and ends with a semicolon (;).

For example, the &lt; entity reference represents the less-than symbol (<) and is used to display the symbol in HTML without actually using the symbol in the source code.

index.html

index.html

copy

Here are some examples of how to use these entity references:

  • The &gt;: >
  • The &amp;: &
  • The &quot;: "
  • The &apos;: '
  • The &nbsp;: (space).

In addition to the common entity references, several other entity references are available in HTML that can be used to represent a wide range of characters and symbols. For example, you can use the &#8217; entity reference to represent the right single quotation mark (’) character or the &#x2605; entity reference to represent the star symbol (★).

index.html

index.html

copy

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 5
some-alt