HTML - Special Entity Codes

HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
Teaching and Learning with Technology
HOME
BY LANGUAGE
BASICS
ACCENTS
WEB DEVEL
GLOSSARY
SITE MAP
LOCATION: Web Developers : HTML Special Entity Codes
HTML - Special Entity Codes
This Web page contains lists of common special entity codes needed in HTML to generate
special characters such as ñ, ¢, ÷ and other characters. Full instructions are in the "Using the
Codes" section followed by lists organized by character type. Information on
NOTE: If you are composing Web pages in an HTML editor such as Dreamweaver or
Microsoft Web Expression the programs may generate the characters based on what is
typed in (check the HTML to be sure).
This Page
1. Letters with Accents - (e.g. ó, ò, ñ)
Expanded Accents Listing (Unicode) - Phonetics Information Page
2. Other Foreign Characters - (e.g. ç, ¿, ß)
Expanded Foreign Characters (Unicode) - Phonetics Information Page
3. Currency Symbols - (e.g. ¢, £, ¥)
4. Math Symbols - (e.g. ±, °, ÷)
5. Other Punctuation - (e.g. &, ©, §, smart quotes )
6. Using the Codes
7. Uniciode Numeric Codes - New Page
8. Links to Other References
Caution on Smart Quotes and Long Dashes
“Smart (curly) quotes” (vs. "plain (straight) quotes") and long dashes such as em dash (—)
and en dash (–) are actually considered "special characters" in HTML. If you are using a Word
file with these symbols, you may need to remove them or replace them with entity
characters. Plain quotes and short dashes are always OK.
Letters with Accents
This list is organized by Accent type. If a value is missing in the chart, then see the Expanded
Unicode Accents code page.
To determine the appropriate code, match the accent with the vowel. The general template
for each accent is in the left column in blue. For instance&Vcirc; means that all the entity
codes for vowels with circumflex accents contain "circ" as part of the code.
NOTE: Numbers in parentheses refer to the numeric position of the character in the Unicode
encoding scheme.
1 of 9
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
Example 1: To input the lower case circumflex â in HTML, type in â or â
Example 2: To input the capital circumflex  in HTML, type in  or Â
Exampe 3: To input lower case circumflex ô in HTML, type in ô or ô
Entity Codes for Accented Vowels by Accent Type
Accent
Grave
&Vgrave;
(Cap)
A
E
I
O
U
À
È
Ì
Ò
Ù
À È Ì Ò Ù
(192)
(200)
(204)
(210)
(217)
à
Grave (Lower)
Acute
&Vacute;
(Cap)
Circumflex
&Vcirc;
(Cap)
Circumflex (Lower)
Tilde
&Vtilde;
(Cap)
ì
ò
Á
É
Í
Ó
--
ù
à è ì ò ù
(224)
(232)
(236)
(242)
(249)
Ú
--
Ý
Á É Í Ó Ú Ý
(193)
(201)
(205)
(211)
(218)
(221)
á
Acute (Lower)
è
Y
é
í
ó
ú
ý
á é í ó ú ý
(225)
(233)
(237)
(243)
(250)
(253)
Â
Ê
Î
Ô
Û
Â
(194)
Ê
(202)
Î
(206)
Ô
(212)
Û
(219)
--
â
ê
î
ô
û
â
(226)
ê
(234)
î
(238)
ô
(244)
û
(251)
--
Ñ
Õ
--
Ñ
(209)
Õ
(213)
--
--
Ã
Ã
(195)
ñ
õ
Tilde (Lower)
ã
(227)
ã
--
ñ
(241)
õ
(245)
--
--
Umlaut
&Vuml;
Ä
Ë
Ï
Ö
Ü
Ä
(196)
Ë
(203)
Ï
(207)
Ö
(214)
Ü
(220)
Ÿ1
(Cap)
Umlaut (Lower)
Ÿ
(159)
ä
ë
ï
ö
ü
ÿ
ä
(228)
ë
(235)
ï
(239)
ö
(246)
ü
(252)
ÿ
(255)
1: The code Ÿ is not supported in older browsers such as Netscape 4.7, but the numeric
version (Ÿ) works.
If you are having problems inputting these codes, please review the instructions for using the
codes on top of this Web page.
Top of Page
Other Foreign Characters
This page includes common Western European characters only. Refer to the individual By
Language pages for further codes.
2 of 9
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
Common Codes
NOTES: Numbers in parentheses refer to the numeric position of the character in the Unicode
encoding scheme (some characters have an older Win-1252 number which is listed first)
Example 1: To generate the upside-down question mark ¿,type ¿ into the HTML code.
Example 2: To generate French oe ligature œ, type œ into the HTML code. These
numeric codes may be necessary in some older browsers.
Entity Codes for Other Common Characters
SYMBOL
NAME
¡
Upside-down exclamation point.
¡ (161)
¿
Upside-down question mark.
¿ (191)
French C cedille (caps/lowercase)
Ç (199)
ç (231)
Ç,ç
Œ,œ French O-E ligature (caps/lowercase)
º,ª
Π(140 or 338)
œ (156 or 339)
Masculine & feminine ordinal number
(Spanish/Italian/Portuguese)
º (186)
ª (170)
German double S
ß (223)
Ø,ø
O slash (caps/lowercase)
Ø (216)
ø (248)
Å,å
A ring, Angstrom sign (caps/lowercase)
Å (197)
å (229)
ß
Æ,æ A-E ligature (caps/lowercase)
3 of 9
CODE
Æ (198)
æ (230)
Þ,þ
Old English thorn (caps/lowercase)
Þ (222)
þ (254)
Ð,ð
Old English eth (caps/lowercase)
Ð (208)
ð (240)
«»
European/Spanish style double angle quote mark.
« (171)
» (187)
‹›
European/Spanish style single angle quote mark.
‹ (8249)
› (8250)
‚
European single bottom quote
‚ (8218)
„
European bottom quote
„ (8222)
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
“
Opening Double Quotes
“ (147 or 8220)
”
Closing Double Quotes
” (148 or 8221)
‘
Opening Single Quote Mark
‘ (145 or 8216)
’
Closing Single Quote Mark
’ (146 or 8217)
Top of Page
Currency Symbols
NOTE: Numbers in parentheses refer to the numeric position of the character in the Unicode
encoding scheme.
Example: To generate the cent sign ¢,type ¢ or ¢ into the HTML code.
Entity Codes for Common Currency Symbols
SYMBOL
NAME
CODE
¢
cent sign
¢ (162)
£
British Pound
£ (163)
¥
Japanese Yen
¥ (165)
€
Euro Symbol
€ (8364)
¤
Generic currency symbol
¤ (164)
ƒ
Dutch Florin Symbol (may not work in older browsers) ƒ (402)
If you are having problems inputting these codes, please review the instructions for using the
codes on top of this Web page.
Top of Page
Math Symbols
Common Codes
NOTE: Numbers in parentheses refer to the numeric position of the character in the Unicode
encoding scheme.
4 of 9
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
Example: To generate the division sign ÷, type ÷ or ÷ into the HTML code.
Codes for Common Math Symbols
SYMBOL
>
<
÷
/
°
¬
±
NAME
CODE
Greater than
&gt; (62)
Less than
&lt; (60)
Division symbol
&divide; (247)
Forward Slash
&#47;
Degree symbol
&deg; (176)
Not symbol
&not; (172)
Plus/minus symbol &plusmn; (177)
µ
Micro
&micro; (181)
If you are having problems inputting these codes, please review the instructions for using the
codes on top of this Web page.
New Codes
These codes do not work in old browsers like Netscape 4.7, but are generally usable in new
browsers.
Below are just a few available codes.
For more entity codes - see or Ian Graham's Mathematical Symbols for HTML or Jukka
Korpela HTML Entities or for more details and a complete list.
For the complete set of numeric codes see the Math Chart or Alan Wood's Symbols Test
Page
Common New Entity Codes for Math
SYMBOL
∴
≠
≥
≤
5 of 9
NAME
CODE
therefore triangle
&there4; (8756)
not equals
&ne; (8800)
greater than or equals to &ge; (8805)
less than or equals to
&le; (8804)
02/25/2015 05:03 PM
HTML Accent Entity Codes
≈
√
∞
∫
∂
′
″
∑
∏
‰
≡
http://symbolcodes.tlt.psu.edu/web/codehtml.html
approximately
&asymp; (8776)
square root radical
&radic; (8730)
infinity
&infin; (8734)
integral sign
&int; (8747)
partial differential
&part; (8706)
Single prime
&prime; (8242)
Double prime
&Prime; (8243)
Sigma Sum Sign
&sum; (8721)
Pi Product Sign
&prod;(8719)
Per mil (1/1000th)
&permil;
equivalent to (three lines) &equiv; (8801)
Top of Page
Other Punctuation
Caution on Smart Quotes and Long Dashes
“Smart (curly) quotes” (vs. "plain (straight) quotes") and long dashes such as em dash (—)
and en dash (–) are actually considered "special characters" in HTML. If you are using a Word
file with these symbols, you may need to remove them or replace them with entity
characters.
Common Codes
Example 1: To generate the and symbol & (&amp;) type in &amp; or &#38;.
Example 2: To generate the string &amp; in HTML, type &amp;amp;.
Codes for Punctuation Symbols
SYMBOL
NAME
CODE
(blank space) Inserts a non-breaking blank space (en space) &nbsp; (32)
&
6 of 9
Ampersand
&amp; (38)
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
“
Opening Double Quotes
&ldquo; (147 or 8220)
”
Closing Double Quotes
&rdquo; (148 or 8221)
‘
Opening Single Quote Mark
&lsquo; (145 or 8216)
’
Closing Single Quote Mark
&rsquo; (146 or 8217)
®
Registered symbol
&reg; (174)
©
Copyright symbol
&copy; (169)
™
Trademark symbol
&trade; (153 or 8482)
¶
Paragraph symbol
&para; (182)
•
Big (Bullet) List Dot
&bull; (149 or 8226)
Medium (Middle) List Dot
&middot; (183)
§
Section Symbol
&sect; (167)
–
en-dash
&ndash; (150 or 8211)
—
em-dash
&mdash; (151 or 8212)
·
New Codes
These codes do not work in old browsers like Netscape 4.7, but are generally usable in new
browsers.
Additional Punctuation Codes
SYMBOL
†
‡
◊
7 of 9
NAME
CODE
dagger (cross)
&dagger; (8224)
double dagger
&Dagger; (8225)
open diamond, lozenge &loz; (9674)
02/25/2015 05:03 PM
HTML Accent Entity Codes
↑
↓
←
→
↔
http://symbolcodes.tlt.psu.edu/web/codehtml.html
up arrow
&uarr; (8593)
down arrow
&darr; (8595)
left arrow
&larr; (8592)
right arrow
&rarr; (8594)
double headed arrow
&harr; (8596)
If you are having problems inputting these codes, please review the instructions for using the
codes on top of this Web page.
Top of Page
Using the Codes
To input non-English into an Web page, HTML employs a series of entity codes enclosed with
an & on the left side and a ; (semi-colon) on the right.
HTML SPECIAL CHARACTER TEMPLATE
&(code);
For example, the code for ç is "ccedil". To generate French ç in HTML, type the code &ccedil;
into your HTML document as in:
HTML - fran&cecedil;ais
Result - français
Here's another example using &cent; for ¢.
HTML - It cost 5&cent;.
Result - It cost 5¢.
Some characters like œ (#156) are known by a number, not an entity code. For these
characters the template is:
HTML CHARACTER NUMBER TEMPLATE
&#(number);
For example to input sœur, the French word for sister you use the following code:
HTML - s&#156;ur 'sister'
Result - sœur 'sister'
Troubleshooting the Encoding
If one of the numeric codes (e.g. &#156; for œ) fails to display, try including the following
meta tags in the header (between the <head></head>) tags.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> Recommended
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
This will force the browser to switch to the correct encoding system.
Top of Page
8 of 9
02/25/2015 05:03 PM
HTML Accent Entity Codes
http://symbolcodes.tlt.psu.edu/web/codehtml.html
Links to External Reference Pages
HTML Entity Codes
Webmonkey - The first set of entries ("left single quote" to "trademark sign") are
experimental and may not be supported in Netscape 4.7
Alan Wood HTML 4.0 Character Entity References - Lists Unicode number and entity. Some
mathematical characters not supported in Netscape 4.7
HTML Special Characters and Browser Compatability
Ultimate Cool Characters
Ian S. Graham - Switch to Western view
Top of Page
©Penn State University, 2000-2013.
This Web page maintained by Teaching and Learning with Technology, a unit of Information Technology Services. For
questions or comments on this Web page, please contact Elizabeth J. Pyatt ([email protected]).
This site uses Unicode to display non-English characters. This site is best viewed in the most recent versions of your
browser.
Privacy and Legal Statements | Accessibility Help
Unicode character names and hexadecimal entity codes are taken from the public Unicode Character Charts.
This publication is available in alternate media upon request.
Last Modified: Tuesday, 04-Jun-2013 12:41:28 EDT
9 of 9
02/25/2015 05:03 PM