HTML special characters codes
- Overview
- General symbols
- Accented / Latin language diacritical characters
- Greek characters
- Mathematical symbols and operators
- Alterative ways to insert symbols
General symbols
|
Character HTMLvalue
&Ampersand&38
#Hash-35
%Percent-37
<Left angle bracket<60
>Right angle bracket>62
Space 160
¢Cent¢162
$Dollar-36
€Euro€8364
£Pound£163
¥Yen¥165
°Degree sign°176
|Vertical bar-124
¦Broken bar¦166
¡Inverted exclamation¡161
¿Invt. question mark¿191
¹Superscript "1"¹185
²Superscript "2"²178
³Superscript "3"³179
¼Fraction quarter¼188
½Fraction half½189
¾Fraction three quart¾190
⅛Fraction one eighth-8539
⅜Fraction three eighths-8540
⅝Fraction five eighths-8541
⅞Fraction seven eighths-8542
⅓Fraction one third-8531
⅔Fraction two thirds-8532
↓Arrow down↓8595
←Arrow left←8592
→Arrow right→8594
↑Arrow up↑8593
↔Arrow left right↔8596
⇓Arrow double down⇓8659
⇐Arrow double left⇐8656
⇒Arrow double right⇒8658
⇑Arrow double up⇑8657
⇔Arrow double left right⇔8660
▲Solid up-point triangle-9650
►Solid Rt-point triangle-9658
▼Solid Dn-point triangle-9660
◄Solid Lt-point triangle-9668
↵Carriage return↵9229
¶Paragraph¶182
§Section marker§167
℅Care of-8453
|
Character HTMLvalue
©Copyright©169
®Registered TM®174
™Trade mark sign™8482
ΩOhm symbol-8486
⚓Anchor-9875
✉Envelope-9993
✈Airplane-9992
✓Check-10003
✔Check heavy-10004
✗Ballot-10007
✘Ballot heavy-10008
✆Telephone location-9990
☎Phone-9742
♻Recycle-9851
♿Wheelchair access-9855
☂Umbrella-9730
★Solid star-9733
•Bullet mark•8226
♦Diamonds♦9830
♣Clubs♣9827
♥Hearts♥9829
♠Spades♠9827
◊Lozenge◊9674
⌘Command key (Apple)-8984
⌥Option key (Apple)-8997
☮Peace symbol-9774
☯Yin Yan-9775
✂black scissors-9986
✄White scissors-9988
⊕Circled plus⊕8853
‡Dagger double‡8225
†Dagger single†8224
—Em dash—8212
–En dash–8211
‾Overline‾8254
·Middle dot·183
…Horizontal ellipsis…8230
«Guillemet left«171
»Guillemet right»187
'Apostrophe-39
"Quote"34
‘Quote single left‘8216
’Quote single right’8217
‚Quote single lower‚8218
“Quote double left“8220
”Quote double right”8221
„Quote double lower„8222
|
▲ top
Latin language diacritical characters
|
Character HTMLvalue
ÀA upper graveÀ192
ÁA upper acuteÁ193
ÂA upper circumflexÂ194
ÃA upper tildeÃ195
ÄA upper UmlautÄ196
ÅA upper ringedÅ197
ÆAE upperÆ198
ÇC upper cedillaÇ199
ÈE upper graveÈ200
ÉE upper acuteÉ201
ÊE upper circumflexÊ202
ËE upper umlautË203
ÌI upper graveÌ204
ÍI upper acuteÍ205
ÎI upper circumflexÎ206
ÏI upper umlautÏ207
ÐEth upperÐ208
ÑN upper tildeÑ209
ÒO upper graveÒ210
ÓO upper acuteÓ211
ÔO upper circumflexÔ212
ÕO upper tildeÕ213
ÖO upper umlautÖ214
ØO upper slashØ216
ŒOE upperŒ338
ŠS upper caronŠ352
ÙU upper graveÙ217
ÚU upper acuteÚ218
ÛU upper circumflexÛ219
ÜU upper umlautÜ220
ÝY upper acuteÝ221
ŸY upper umlautŸ376
ÞThorn upperÞ222
|
Character HTMLvalue
àA lower graveà224
áA lower acuteá225
âA lower circumflexâ226
ãA lower tildeã227
äA lower Umlautä228
åA lower ringedå229
æAE loweræ230
çC lower cedillaç231
èE lower graveè232
éE lower acuteé233
êE lower circumflexê234
ëE lower umlautë235
ìI lower graveì236
íI lower acuteí237
îI lower circumflexî238
ïI lower umlautï239
ðEth lowerð240
ñN lower tildeñ241
òO lower graveò242
óO lower acuteó243
ôO lower circumflexô244
õO lower tildeõ245
öO lower umlautö246
øO lower slashø248
œOE lowerœ339
šS lower caronš353
ùU lower graveù249
úU lower acuteú250
ûU lower circumflexû251
üU lower umlautü252
ýY lower acuteý253
ÿY lower umlautÿ255
þThorn lowerþ254
ßEszettß223
|
▲ top
Greek characters
|
Character HTMLvalue
ΑUpper alphaΑ913
ΒUpper betaΒ914
ΓUpper gammaΓ915
ΔUpper deltaΔ916
ΕUpper epsilonΕ917
ΖUpper zetaΖ918
ΗUpper etaΗ919
ΘUpper thetaΘ920
ΙUpper iotaΙ921
ΚUpper kappaΚ922
ΛUpper lambdaΛ923
ΜUpper muΜ924
ΝUpper nuΝ925
ΞUpper xiΞ926
ΟUpper omicronΟ927
ΠUpper piΠ928
ΡUpper rhoΡ929
ΣUpper sigmaΣ931
ΤUpper tauΤ932
ΥUpper upsilonΥ933
ΦUpper phiΦ934
ΧUpper chiΧ935
ΨUpper psiΨ936
ΩUpper omegaΩ937
|
Character HTMLvalue
αLower alphaα945
βLower betaβ946
γLower gammaγ947
δLower deltaδ948
εLower epsilonε949
ζLower zetaζ950
ηLower etaη951
θLower thetaθ952
ϑLower thetaϑ977
ιLower iotaι953
κLower kappaκ954
λLower lambdaλ955
μLower muμ956
νLower nuν957
ξLower xiξ958
οLower omicronο959
πLower piπ960
ρLower rhoρ961
ςLower final sigmaς962
σLower sigmaσ963
τLower tauτ964
υLower upsilonυ965
φLower phiφ966
χLower chiχ967
ψLower psiψ968
ωLower omegaω969
|
▲ top
Mathematical symbols and operators
|
Character HTMLvalue
<Less than<60
=Equal to-61
>Greater than>62
≤Less or equal≤8804
≥Greater or equal≥8805
≠Not equal to≠8800
≈Almost equals≈8776
≅Approximates≅8773
∼Similar to∼8764
≡Equivalent to≡8801
∝Proportional to∝8764
∀For all∀8704
∑Summation∑931
±Plus or minus±177
÷Divide÷247
×Times×215
∗Asterisk operator∗8727
√Square root√8730
ⁿnth power-8319
ƒFunctionƒ402
∏N-ary product∏8719
∑N-ary summation∑8721
⊗Vector product⊗8855
∇Backward difference∇8711
∫Integral∫8747
∩Intersection∩8745
∪Union∪8899
∠Angle∠8736
⋅Dot operator⋅46
|
Character HTMLvalue
〈Bracket left-pointing⟨8249
〉Bracket right-pointing⟩8250
⁄Fraction slash⁄8260
∧Logical and∧8711
∨Logical or∨8744
¬Not¬172
∈An element of∈8712
∉Not an element of∉8713
∋Contains member∋8715
⊃Superset of⊃8835
⊇Superset or equal⊇8839
⊂Subset of⊂8834
⊆Subset or equal⊆8838
⊄Not a subset of⊄8836
∅Null set, diameter∅8709
∂Partial differential∂8706
‰Per mille‰8240
′Minute, feet′8242
″Second, inches″8243
∃There exists∃8707
∄There does not exist-8708
∴Therefore∴8756
…Horizontal ellipsis…8230
⌈Ceiling left⌈8968
⌉Ceiling right⌉8969
⌊Floor left⌊8970
⌋Floor right⌋8971
∞Infinity∞8734
|
▲ top
Overview - HTML special characters codes
The listings here show a useful selection of the HTML special characters with their codes, plus the Unicode decimal value for each symbol. Just to be fancy, these are often referred to as 'Entity Codes'. In some cases symbols are included for which no HTML special character codes are available. See the section on Alternative ways to insert symbols to utilize the Unicode values. Notice that some character codes are case sensitive. For example, the letter Ä is produced by the code Ä and the letter ä is produced by ä.
There are some characters that cannot be directly typed into the text of web pages either because your keyboard does not support them or because of limitations set by HTML. For example, if extra spaces are added between words, the browser will ignore these and place a single space after each word regardless. So how are extra spaces added? By using the special character code for the space character. Here is an example;
Here is some text with spaces between the words
and here is what the HTML script looks like;
<p> Here is some text with spaces between the words </p>
Not exactly elegant, but it does the job. The text is separated out by the 'none-break space' character; or at least, it's special character code. Each special character code is preceded by an ampersand "&" and followed by a semicolon ";".
Many of the symbols listed here such as $ & € can in fact be typed straight in if your keyboard supports them. Although all browsers will render an "&" symbol correctly when you type it into your text, it is not considered valid by the W3C and may cause ambiguous output in some circumstances. They recommend replacing it with the "&" entity code. In particular, the "<" symbol will cause trouble if you type it into your html text because it will of course be interpreted as a tag opening operator. You will need to replace it with the "<" entity code in your text to get the desired effect.
▲ top
Alternative ways to render symbols
Direct character value entry
The entire range of symbols may in fact be entered directly from the keyboard. Each character has a unique numeric value shown in the right hand value column of these tables. This value can be entered while holding down the Alt key. To do this, you will need to use the number pad with numlock set on - not the number keys at the top of the keyboard. However, be aware that the ability to type characters directly into your text does not guarantee that they will be rendered as you want by browsers since they are subject to the same limitations set by HTML as any other typed character.
The entire Unicode repertoire of character values contains over 100,000 symbols which are contained in a range of encoding sets (tables to you and me) that go beyond the scope of this document. There are different internationalized encodings of Unicode which include character sets relevant to the geographic region for which the version is implemented. The complete Unicode repertoire continues to be added to and contains almost every symbol in use for human written communication. A more exhaustive set of character codes is to be found at http://unicode.org/charts.
Indirect character value entry
A final method of writing special characters is to type the actual numeric character values discussed above into your HTML script. They needs to be formatted so that browsers will know how to interpret them. Here is an example;
The temperature is 20°c.
and here is what the HTML script looks like;
<p> The temperature is 20°c. </p>
The numeric value of the character shown in the right hand column of the tables above is preceded by "&#" and followed by a semicolon ";". The number that represents each symbol can vary depending on the character encoding that has been specified with the Content-Type meta tag¹ in the page header element. This means that if the character renders correctly in your browser, it should in theory work correctly in any browser. In practice this is not always the case. Safari in particular appears to have a somewhat limited embedded character set at the time of writing and will render unresolvable characters as a square. HTML imposes no restriction on which characters may be used by this method with the proviso that values 0 - 31 and 128 - 159 are not usable. These are reserved values and will not render predictably.
▲ top
1 In order that web pages render as expected across all browsers, they must
contain a Content-Type meta tag which specifies the Unicode character encoding to be used. If your web pages are written in English,
then the following tag or one similar should be pasted into the top of the head element of every page you create;
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />.
If you generally write pages in another language, you need to identify a suitable character set encoding for your language of
choice.