Appendix: Common HTML Character Codes

Overview

Character codes are used to display symbols in HTML that are either unavailable on a standard keyboard, or would interfere with the normal HTML code. For example:

  • Greater than or less than symbols (> or <) are part of HTML tags.
  • The inverted question mark (¿) used in Spanish cannot be written on a standard English keyboard.

How to Use Character Codes

Character codes must be applied in the HTML editor in the place of the symbol you’re trying to create. For many symbols, there are two code options: one using numbers, and another using a text abbreviation. Either option will work.

Every character code must start with an ampersand (&) and end with a semicolon (;). Number codes also include a number sign (#) after the ampersand. The format looks like this:

  • Character codes: &char_name;
  • Number codes: &#char_number;

See the quick reference table below for examples.

Quick Reference Table

There is an extensive list of HTML character codes. The table below lists some of the more common ones. You can also view a detailed list of character codes.

When writing in another language, you may require letters that are not found in the English alphabet. The table below includes common letters found in Spanish. The link to a detailed list of character codes includes more options. For these letters, the text abbreviation is case-sensitive.

Symbol HTML Number HTML Name Description
" &#34; &quot; Double quote
# &#35; None Number sign
$ &#36; None Dollar sign
& &#38; &amp; Ampersand
< &#60; None Less than sign
> &#62; None Greater than sign
¡ &#161; &iexcl; Inverted exclamation mark
© &#169; &copy; Copyright sign
° &#176; &deg; Degree sign
¿ &#191; &iquest; Inverted question mark
Á &#193; &Aacute; Latin capital letter A with acute
É &#201; &Eacute; Latin capital letter E with acute
Í &#205; &Iacute; Latin capital letter I with acute
Ñ &#209; &Ntilde; Latin capital letter N with tilde
Ó &#211; &Oacute; Latin capital letter O with acute
Ú &#218; &Uacute; Latin capital letter U with acute
á &#225; &aacute; Latin small letter a with acute
é &#233; &eacute; Latin small letter e with acute
í &#237; &iacute; Latin small letter i with acute
ñ &#241; &ntilde; Latin small letter n with tilde
ó &#243; &oacute; Latin small letter o with acute
ú &#250; &uacute; Latin small letter u with acute
&#8212; &emdash; em dash (long dash)

License

Accessibility and UDL Best Practices Guide Copyright © by Caitlin Malone. All Rights Reserved.