The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< html
Jump to: navigation, search


This article is Ready to Use.


This article looks at the different codes that can be used to represent text characters when there is a need to escape them. Included is a list containing several characters and their codes.

Common HTML entities used for typography


This article looks at the different codes that can be used to represent text characters when there is a need to escape them. There are a number of HTML entities that come in handy when there’s a need for first-rate typesetting. Many of those listed in the table below are useful only when used in foreign language copy (and copy written in specific dialects of English), so context should be taken into account before the choice is made to use them.

For the sake of portability, Unicode entity references should be reserved for use in documents certain to be written in the UTF-8 or UTF-16 character sets. In all other cases, the alphanumeric references should be used.

HTML Entities Table

Character(s) Literal(s) Alphanumeric value(s) Unicode value(s) Prefer to
Cent (currency) ¢ &cent; &#162;
Pound (currency) £ &pound; &#163;
Section 1 § &sect; &#167;
Copyright © &copy; &#169; (c)
Guillemets 2 « » &laquo; &raquo; &#171; &#187; &quot;
Registered trademark ® &reg; &#174; (R)
Degree(s) ° &deg; &#176;
Plus/minus ± &plusmn; &#177; +/-
Pilcrow (paragraph) 3 &para; &#182;
Middle dot 4 · &middot; &#183;
Fractional half 5 ½ &frac12; &#188; 1/2
En dash 6, 7 &ndash; &#8211; - for ranges
Em (long) dash 7, 8 &mdash; &#8212; - enclosed by spaces, or --
Single quotes 9, 10 ‘ ’ &lsquo; &rsquo; &#8216; &#8217; ' or &apos;
Single low quote 11 &sbquo; &#8218; ' or comma
Double quotes 9 “ ” &ldquo; &rdquo; &#8220; &#8221; ", &quot;, , or ``
Double low quote 11 &bdquo; &#8222; &quot; or ,,
Single & double daggers † ‡ &dagger; &Dagger; &#8224; &#8225; * and **
Bullet &bull; &#8226; *
Ellipsis 12 &hellip; &#8230; ...
Prime & double prime 13 ′ ″ &prime; &Prime; &#8242; &#8243; ', , &apos;, &quot;, minutes:seconds elapsed
Euro sign &euro; &#8364;
Trademark &trade; &#8482; (tm)
Almost equal to &asymp; &#8776; ~
Not equal to &ne; &#8800; !=
Less/greater than or equal to   ≤ ≥ &le; &ge; &#8804; &#8805; <= or >=
Less/greater than < > &lt; &gt; &#060; &#062;

Table 1: HTML entities useful for proper typesetting, listed in order by decimal Unicode position.

HTML entity usage notes

  1. Citations of statute law, e.g., “29 USC § 794 (d),” are the matter most likely to reference this character.
  2. Guillemets often enclose the names of stories, songs, films, public accommodations (e.g., «Rick’s Café Americain»), and popular toponyms in European languages, particularly those of the Romance sub-family. They are also used for quotes in certain European languages (such as French and Norsk); in these situations, you should always use q elements instead.
  3. The pilcrow, used to mark the beginning of paragraphs that might otherwise be ambiguous, is useful when setting teaser copy. The print distribution of Rolling Stone magazine has often used such an approach. In technical writing, it might also be useful for marking an orphaned first line of a paragraph. ¶ Paragraphs marked with this symbol will most often be assigned a display value of inline, which will be explained in the introduction to the CSS layout model.
  4. The middle dot is an anachronistic analogue to the decimal point, still used by some designers to enumerate amounts of decimalized currency.
  5. HTML also provides references to the code positions for one-quarter and three-quarters fractions.
  6. The en dash is used between two quantities or dates to suggest a range, and is indistinguishable from a proper minus sign (&minus;/&#8722;). However, it should always be distinguished from a hyphen (&#45;), which is used to separate the parts of an ad hoc compound word.
  7. Browsers create soft line breaks after hyphens (see above), but not after en dashes or em dashes.
  8. The exclusive use of the em dash in English is to mark one or both ends of a dependent clause in lieu of parentheses, and to indicate that if spoken aloud the clause should be preceded and followed by uninflected pauses. In several other languages—particularly those of the Slavic sub-family—em dashes indicate dialogue from the beginning of a paragraph. Tradition dictates that this character not be enclosed itself by spaces, but the thoughtful user of markup may wish to do just that in order to avoid an especially ragged line.
  9. These are the members of the automated “Smart Quotes” set of characters incorporated into most popular word processing platforms. They are often encoded at vendor-specific code positions rather than Unicode or ISO Latin code positions, which can cause problems when they are copied into a Web document.
  10. The single close quote character is also used in English as the apostrophe.
  11. Low quotes are used in several Central and Eastern European langauges in preference to the analogous English opening and closing quote characters.
  12. Since the ellipsis is a single character, the tracking of its constituent glyphs will not be affected by any value set for the letter-spacing or text-align properties.
  13. Primes are used to denote minutes (of both time elapsed and arc) and feet as units of measurement; the double prime in its turn denotes seconds and inches. The use of these characters in relation to units of time elapsed has decreased in popularity in recent years, a decrease that correlates strongly with the increased availability of word processing systems (and their common use by non-specialist operators). Many fonts use prime and double prime characters indistinguishable from single and double close quotes, but for reasons of portability these entities should still be used when called for, notwithstanding the characteristics of the intended display face.