Catalog / HTML Entities Cheat Sheet

HTML Entities Cheat Sheet

A quick reference guide to HTML entities, covering character encoding, special characters, symbols, and accented letters. This cheat sheet provides the HTML entity names and codes for displaying characters that are not directly available on a standard keyboard or that have special meaning in HTML.

Basic HTML Entities

Common Entities

Entity

Description

<

Less Than (<)

&gt;

Greater Than (>)

&amp;

Ampersand (&)

&quot;

Double Quote (“)

&apos; or &#39;

Single Quote or Apostrophe (‘)

&nbsp;

Non-Breaking Space

Why Use Entities?

HTML entities are crucial for displaying characters that have special meanings in HTML (like <, >, and &) or are not readily available on standard keyboards. Using entities ensures that these characters are rendered correctly across different browsers and systems.

For example, if you want to display 2 < 3 in HTML, you should write 2 &lt; 3 to prevent the browser from interpreting < as the start of an HTML tag.

Symbols and Accents

Currency Symbols

Entity

Description

&cent;

Cent Symbol (¢)

&pound;

Pound Symbol (£)

&yen;

Yen Symbol (¥)

&euro;

Euro Symbol (€)

Accented Characters

Entity

Description

&aacute;

a with acute accent (á)

&eacute;

e with acute accent (é)

&iacute;

i with acute accent (í)

&oacute;

o with acute accent (ó)

&uacute;

u with acute accent (ú)

&ccedil;

c with cedilla (ç)

Mathematical Symbols

Common Mathematical Entities

Entity

Description

&plusmn;

Plus-Minus Sign (±)

&divide;

Division Sign (÷)

&times;

Multiplication Sign (×)

&radic;

Square Root (√)

&infin;

Infinity (∞)

&ne;

Not Equal To (≠)

Other Useful Entities

Symbols and Characters

Entity

Description

&copy;

Copyright Symbol (©)

&reg;

Registered Trademark Symbol (®)

&trade;

Trademark Symbol (™)

&sect;

Section Sign (§)

&para;

Paragraph Sign (¶)

&bull;

Bullet Point (•)

Numeric Entities

Besides named entities like &eacute;, you can also use numeric entities. These are based on the character’s Unicode value.

For example, &#233; is the numeric entity for é.

Numeric entities are useful when a named entity doesn’t exist for a specific character.