Working together for standards The Web Standards Project

Character Entities in HTML & XHTML

Single characters can be embedded into documents using character entity references. These references have a numeric value as well as a named value. You can use either one just so long as it is allowed within the DTD in question.

Using character entities is particularly helpful when the encoding set doesn’t express all the characters that you might want to use in the document. For example, if I were authoring a document in English and wanted to use an inverted exclamation mark for a Spanish quotation, I’d use an entity to create that character. Other character entity references help control space, symbols, and so on.

There are three types of character entities available in HTML and XHTML. Follow the links to the complete chart listings for that entity type.

The Web Standards Project is a grassroots coalition fighting for standards which ensure simple, affordable access to web technologies for all.

All of the entries posted in WaSP Buzz express the opinions of their individual authors. They do not necessarily reflect the plans or positions of the Web Standards Project as a group.

This site is valid XHTML 1.0 Strict, CSS | Get Buzz via RSS or Atom | Colophon | Legal