www.RoBorg.co.uk - Javascript and PHP Projects :: Searchable HTML Entities List

Notes about HTML Entities

An entitiy (or more properly "character entity reference") is used to display special characters in HTML (and XHTML/XML) and can also be useful for more common characters like the double quote!

The ampersand (&) character should always be written as & in an HTML document, and all entities you use should end with a semicolon (;). Technically there are certain circumstances where the semicolon is optional, but it's good practice to use it anyway.

To escape a quote in an HTML attribute you should use the HTML entity.
For example:

<div onclick="alert("Hello World");"> - This is wrong because the first quote inside the attribute ends it - the browser sees <div onclick="alert("

<div onclick="alert(\"Hello World\");"> - This is wrong: backslash (\) is the javascript escape character, but it doesn't work in HTML!

<div onclick="alert(&quot;Hello World&quot;);"> - This is correct - the entities get decoded before the javascript runs, so javascript sees the code as alert("Hello World");

Often people wish to display the less than (<) and greater than (>) characters in their pages. If you're looking for a tag that will display HTML inside it as code instead of as normal, I'm afraid you're out of luck (no, <pre> won't do it!) You need to replace all the < with &lt; and the > with &gt;.

Searchable HTML Entities List

This list is taken from the w3c, and presented in a client-side searchable form. It contains all named entities available in HTML 4.

Search entity, CDATA, description and unicode:

 
CharEntityCDATADescriptionUnicodeISO
 nbsp&#160;no-break space = non-breaking spaceU+00A0ISOnum
¡iexcl&#161;inverted exclamation markU+00A1ISOnum
¢cent&#162;cent signU+00A2ISOnum
£pound&#163;pound signU+00A3ISOnum
¤curren&#164;currency signU+00A4ISOnum
¥yen&#165;yen sign = yuan signU+00A5ISOnum
¦brvbar&#166;broken bar = broken vertical barU+00A6ISOnum
§sect&#167;section signU+00A7ISOnum
¨uml&#168;diaeresis = spacing diaeresisU+00A8ISOdia
©copy&#169;copyright signU+00A9ISOnum
ªordf&#170;feminine ordinal indicatorU+00AAISOnum
«laquo&#171;left-pointing double angle quotation mark = left pointing guillemetU+00ABISOnum
¬not&#172;not signU+00ACISOnum
­shy&#173;soft hyphen = discretionary hyphenU+00ADISOnum
®reg&#174;registered sign = registered trade mark signU+00AEISOnum
¯macr&#175;macron = spacing macron = overline = APL overbarU+00AFISOdia
°deg&#176;degree signU+00B0ISOnum
±plusmn&#177;plus-minus sign = plus-or-minus signU+00B1ISOnum
²sup2&#178;superscript two = superscript digit two = squaredU+00B2ISOnum
³sup3&#179;superscript three = superscript digit three = cubedU+00B3ISOnum
´acute&#180;acute accent = spacing acuteU+00B4ISOdia
µmicro&#181;micro signU+00B5ISOnum
para&#182;pilcrow sign = paragraph signU+00B6ISOnum
·middot&#183;middle dot = Georgian comma = Greek middle dotU+00B7ISOnum
¸cedil&#184;cedilla = spacing cedillaU+00B8ISOdia
¹sup1&#185;superscript one = superscript digit oneU+00B9ISOnum
ºordm&#186;masculine ordinal indicatorU+00BAISOnum
»raquo&#187;right-pointing double angle quotation mark = right pointing guillemetU+00BBISOnum
¼frac14&#188;vulgar fraction one quarter = fraction one quarterU+00BCISOnum
½frac12&#189;vulgar fraction one half = fraction one halfU+00BDISOnum
¾frac34&#190;vulgar fraction three quarters = fraction three quartersU+00BEISOnum
¿iquest&#191;inverted question mark = turned question markU+00BFISOnum
ÀAgrave&#192;latin capital letter A with grave = latin capital letter A graveU+00C0ISOlat1
ÁAacute&#193;latin capital letter A with acuteU+00C1ISOlat1
ÂAcirc&#194;latin capital letter A with circumflexU+00C2ISOlat1
ÃAtilde&#195;latin capital letter A with tildeU+00C3ISOlat1
ÄAuml&#196;latin capital letter A with diaeresisU+00C4ISOlat1
ÅAring&#197;latin capital letter A with ring above = latin capital letter A ringU+00C5ISOlat1
ÆAElig&#198;latin capital letter AE = latin capital ligature AEU+00C6ISOlat1
ÇCcedil&#199;latin capital letter C with cedillaU+00C7ISOlat1
ÈEgrave&#200;latin capital letter E with graveU+00C8ISOlat1
ÉEacute&#201;latin capital letter E with acuteU+00C9ISOlat1
ÊEcirc&#202;latin capital letter E with circumflexU+00CAISOlat1
ËEuml&#203;latin capital letter E with diaeresisU+00CBISOlat1
ÌIgrave&#204;latin capital letter I with graveU+00CCISOlat1
ÍIacute&#205;latin capital letter I with acuteU+00CDISOlat1
ÎIcirc&#206;latin capital letter I with circumflexU+00CEISOlat1
ÏIuml&#207;latin capital letter I with diaeresisU+00CFISOlat1
ÐETH&#208;latin capital letter ETHU+00D0ISOlat1
ÑNtilde&#209;latin capital letter N with tildeU+00D1ISOlat1
ÒOgrave&#210;latin capital letter O with graveU+00D2ISOlat1
ÓOacute&#211;latin capital letter O with acuteU+00D3ISOlat1
ÔOcirc&#212;latin capital letter O with circumflexU+00D4ISOlat1
ÕOtilde&#213;latin capital letter O with tildeU+00D5ISOlat1
ÖOuml&#214;latin capital letter O with diaeresisU+00D6ISOlat1
×times&#215;multiplication signU+00D7ISOnum
ØOslash&#216;latin capital letter O with stroke = latin capital letter O slashU+00D8ISOlat1
ÙUgrave&#217;latin capital letter U with graveU+00D9ISOlat1
ÚUacute&#218;latin capital letter U with acuteU+00DAISOlat1
ÛUcirc&#219;latin capital letter U with circumflexU+00DBISOlat1
ÜUuml&#220;latin capital letter U with diaeresisU+00DCISOlat1
ÝYacute&#221;latin capital letter Y with acuteU+00DDISOlat1
ÞTHORN&#222;latin capital letter THORNU+00DEISOlat1
ßszlig&#223;latin small letter sharp s = ess-zedU+00DFISOlat1
àagrave&#224;latin small letter a with grave = latin small letter a graveU+00E0ISOlat1
áaacute&#225;latin small letter a with acuteU+00E1ISOlat1
âacirc&#226;latin small letter a with circumflexU+00E2ISOlat1
ãatilde&#227;latin small letter a with tildeU+00E3ISOlat1
äauml&#228;latin small letter a with diaeresisU+00E4ISOlat1
åaring&#229;latin small letter a with ring above = latin small letter a ringU+00E5ISOlat1
æaelig&#230;latin small letter ae = latin small ligature aeU+00E6ISOlat1
çccedil&#231;latin small letter c with cedillaU+00E7ISOlat1
èegrave&#232;latin small letter e with graveU+00E8ISOlat1
éeacute&#233;latin small letter e with acuteU+00E9ISOlat1
êecirc&#234;latin small letter e with circumflexU+00EAISOlat1
ëeuml&#235;latin small letter e with diaeresisU+00EBISOlat1
ìigrave&#236;latin small letter i with graveU+00ECISOlat1
íiacute&#237;latin small letter i with acuteU+00EDISOlat1
îicirc&#238;latin small letter i with circumflexU+00EEISOlat1
ïiuml&#239;latin small letter i with diaeresisU+00EFISOlat1
ðeth&#240;latin small letter ethU+00F0ISOlat1
ñntilde&#241;latin small letter n with tildeU+00F1ISOlat1
òograve&#242;latin small letter o with graveU+00F2ISOlat1
óoacute&#243;latin small letter o with acuteU+00F3ISOlat1
ôocirc&#244;latin small letter o with circumflexU+00F4ISOlat1
õotilde&#245;latin small letter o with tildeU+00F5ISOlat1
öouml&#246;latin small letter o with diaeresisU+00F6ISOlat1
÷divide&#247;division signU+00F7ISOnum
ùugrave&#249;latin small letter u with graveU+00F9ISOlat1
úuacute&#250;latin small letter u with acuteU+00FAISOlat1
ûucirc&#251;latin small letter u with circumflexU+00FBISOlat1
üuuml&#252;latin small letter u with diaeresisU+00FCISOlat1
ýyacute&#253;latin small letter y with acuteU+00FDISOlat1
þthorn&#254;latin small letter thornU+00FEISOlat1
ÿyuml&#255;latin small letter y with diaeresisU+00FFISOlat1
ƒfnof&#402;latin small f with hook = function = florinU+0192ISOtech
ΑAlpha&#913;greek capital letter alphaU+0391 
ΒBeta&#914;greek capital letter betaU+0392 
ΓGamma&#915;greek capital letter gammaU+0393ISOgrk3
ΔDelta&#916;greek capital letter deltaU+0394ISOgrk3
ΕEpsilon&#917;greek capital letter epsilonU+0395 
ΖZeta&#918;greek capital letter zetaU+0396 
ΗEta&#919;greek capital letter etaU+0397 
ΘTheta&#920;greek capital letter thetaU+0398ISOgrk3
ΙIota&#921;greek capital letter iotaU+0399 
ΚKappa&#922;greek capital letter kappaU+039A 
ΛLambda&#923;greek capital letter lambdaU+039BISOgrk3
ΜMu&#924;greek capital letter muU+039C 
ΝNu&#925;greek capital letter nuU+039D 
ΞXi&#926;greek capital letter xiU+039EISOgrk3
ΟOmicron&#927;greek capital letter omicronU+039F 
ΠPi&#928;greek capital letter piU+03A0ISOgrk3
ΡRho&#929;greek capital letter rhoU+03A1 
ΣSigma&#931;greek capital letter sigmaU+03A3ISOgrk3
ΤTau&#932;greek capital letter tauU+03A4 
ΥUpsilon&#933;greek capital letter upsilonU+03A5ISOgrk3
ΦPhi&#934;greek capital letter phiU+03A6ISOgrk3
ΧChi&#935;greek capital letter chiU+03A7 
ΨPsi&#936;greek capital letter psiU+03A8ISOgrk3
ΩOmega&#937;greek capital letter omegaU+03A9ISOgrk3
αalpha&#945;greek small letter alphaU+03B1ISOgrk3
βbeta&#946;greek small letter betaU+03B2ISOgrk3
γgamma&#947;greek small letter gammaU+03B3ISOgrk3
δdelta&#948;greek small letter deltaU+03B4ISOgrk3
εepsilon&#949;greek small letter epsilonU+03B5ISOgrk3
ζzeta&#950;greek small letter zetaU+03B6ISOgrk3
ηeta&#951;greek small letter etaU+03B7ISOgrk3
θtheta&#952;greek small letter thetaU+03B8ISOgrk3
ιiota&#953;greek small letter iotaU+03B9ISOgrk3
κkappa&#954;greek small letter kappaU+03BAISOgrk3
λlambda&#955;greek small letter lambdaU+03BBISOgrk3
μmu&#956;greek small letter muU+03BCISOgrk3
νnu&#957;greek small letter nuU+03BDISOgrk3
ξxi&#958;greek small letter xiU+03BEISOgrk3
οomicron&#959;greek small letter omicronU+03BFNEW
πpi&#960;greek small letter piU+03C0ISOgrk3
ρrho&#961;greek small letter rhoU+03C1ISOgrk3
ςsigmaf&#962;greek small letter final sigmaU+03C2ISOgrk3
σsigma&#963;greek small letter sigmaU+03C3ISOgrk3
τtau&#964;greek small letter tauU+03C4ISOgrk3
υupsilon&#965;greek small letter upsilonU+03C5ISOgrk3
φphi&#966;greek small letter phiU+03C6ISOgrk3
χchi&#967;greek small letter chiU+03C7ISOgrk3
ψpsi&#968;greek small letter psiU+03C8ISOgrk3
ωomega&#969;greek small letter omegaU+03C9ISOgrk3
ϑthetasym&#977;greek small letter theta symbolU+03D1NEW
ϒupsih&#978;greek upsilon with hook symbolU+03D2NEW
ϖpiv&#982;greek pi symbolU+03D6ISOgrk3
bull&#8226;bullet = black small circleU+2022ISOpub
hellip&#8230;horizontal ellipsis = three dot leaderU+2026ISOpub
prime&#8242;prime = minutes = feetU+2032ISOtech
Prime&#8243;double prime = seconds = inchesU+2033ISOtech
oline&#8254;overline = spacing overscoreU+203ENEW
frasl&#8260;fraction slashU+2044NEW
weierp&#8472;script capital P = power set = Weierstrass pU+2118ISOamso
image&#8465;blackletter capital I = imaginary partU+2111ISOamso
real&#8476;blackletter capital R = real part symbolU+211CISOamso
trade&#8482;trade mark signU+2122ISOnum
alefsym&#8501;alef symbol = first transfinite cardinalU+2135NEW
larr&#8592;leftwards arrowU+2190ISOnum
uarr&#8593;upwards arrowU+2191ISOnum
rarr&#8594;rightwards arrowU+2192ISOnum
darr&#8595;downwards arrowU+2193ISOnum
harr&#8596;left right arrowU+2194ISOamsa
crarr&#8629;downwards arrow with corner leftwards = carriage returnU+21B5NEW
lArr&#8656;leftwards double arrowU+21D0ISOtech
uArr&#8657;upwards double arrowU+21D1ISOamsa
rArr&#8658;rightwards double arrowU+21D2ISOtech
dArr&#8659;downwards double arrowU+21D3ISOamsa
hArr&#8660;left right double arrowU+21D4ISOamsa
forall&#8704;for allU+2200ISOtech
part&#8706;partial differentialU+2202ISOtech
exist&#8707;there existsU+2203ISOtech
empty&#8709;empty set = null set = diameterU+2205ISOamso
nabla&#8711;nabla = backward differenceU+2207ISOtech
isin&#8712;element ofU+2208ISOtech
notin&#8713;not an element ofU+2209ISOtech
ni&#8715;contains as memberU+220BISOtech
prod&#8719;n-ary product = product signU+220FISOamsb
sum&#8721;n-ary sumationU+2211ISOamsb
minus&#8722;minus signU+2212ISOtech
lowast&#8727;asterisk operatorU+2217ISOtech
radic&#8730;square root = radical signU+221AISOtech
prop&#8733;proportional toU+221DISOtech
infin&#8734;infinityU+221EISOtech
ang&#8736;angleU+2220ISOamso
and&#8743;logical and = wedgeU+2227ISOtech
or&#8744;logical or = veeU+2228ISOtech
cap&#8745;intersection = capU+2229ISOtech
cup&#8746;union = cupU+222AISOtech
int&#8747;integralU+222BISOtech
there4&#8756;thereforeU+2234ISOtech
sim&#8764;tilde operator = varies with = similar toU+223CISOtech
cong&#8773;approximately equal toU+2245ISOtech
asymp&#8776;almost equal to = asymptotic toU+2248ISOamsr
ne&#8800;not equal toU+2260ISOtech
equiv&#8801;identical toU+2261ISOtech
le&#8804;less-than or equal toU+2264ISOtech
ge&#8805;greater-than or equal toU+2265ISOtech
sub&#8834;subset ofU+2282ISOtech
sup&#8835;superset ofU+2283ISOtech
nsub&#8836;not a subset ofU+2284ISOamsn
sube&#8838;subset of or equal toU+2286ISOtech
supe&#8839;superset of or equal toU+2287ISOtech
oplus&#8853;circled plus = direct sumU+2295ISOamsb
otimes&#8855;circled times = vector productU+2297ISOamsb
perp&#8869;up tack = orthogonal to = perpendicularU+22A5ISOtech
sdot&#8901;dot operatorU+22C5ISOamsb
lceil&#8968;left ceiling = apl upstileU+2308ISOamsc
rceil&#8969;right ceilingU+2309ISOamsc
lfloor&#8970;left floor = apl downstileU+230AISOamsc
rfloor&#8971;right floorU+230BISOamsc
lang&#9001;left-pointing angle bracket = braU+2329ISOtech
rang&#9002;right-pointing angle bracket = ketU+232AISOtech
loz&#9674;lozengeU+25CAISOpub
spades&#9824;black spade suitU+2660ISOpub
clubs&#9827;black club suit = shamrockU+2663ISOpub
hearts&#9829;black heart suit = valentineU+2665ISOpub
diams&#9830;black diamond suitU+2666ISOpub
"quot&#34;quotation mark = APL quoteU+0022ISOnum
&amp&#38;ampersandU+0026ISOnum
<lt&#60;less-than signU+003CISOnum
>gt&#62;greater-than signU+003EISOnum
ŒOElig&#338;latin capital ligature OEU+0152ISOlat2
œoelig&#339;latin small ligature oeU+0153ISOlat2
ŠScaron&#352;latin capital letter S with caronU+0160ISOlat2
šscaron&#353;latin small letter s with caronU+0161ISOlat2
ŸYuml&#376;latin capital letter Y with diaeresisU+0178ISOlat2
ˆcirc&#710;modifier letter circumflex accentU+02C6ISOpub
˜tilde&#732;small tildeU+02DCISOdia
ensp&#8194;en spaceU+2002ISOpub
emsp&#8195;em spaceU+2003ISOpub
thinsp&#8201;thin spaceU+2009ISOpub
ndash&#8211;en dashU+2013ISOpub
mdash&#8212;em dashU+2014ISOpub
lsquo&#8216;left single quotation markU+2018ISOnum
rsquo&#8217;right single quotation markU+2019ISOnum
sbquo&#8218;single low-9 quotation markU+201ANEW
ldquo&#8220;left double quotation markU+201CISOnum
rdquo&#8221;right double quotation markU+201DISOnum
bdquo&#8222;double low-9 quotation markU+201ENEW
dagger&#8224;daggerU+2020ISOpub
Dagger&#8225;double daggerU+2021ISOpub
permil&#8240;per mille signU+2030ISOtech
euro&#8364;euro signU+20ACNEW