HTML Escape Codes

To write an element and attribute into your page so that the code is shown to the user rather than being processed by the browser you need to escape the angled brackets and quotation marks. For example to write <div id="character"> you would write:

&lt;div id=&quot;character&quot;&gt;

There is also a long list of special characters that HTML 4.0 processors should support. In order for these to appear in your document, you can use either the numerical code or the entity name. For example to insert a copyright symbol you could use either of the following:

&copy; 2008
&#169; 2008
Symbols
symbol&copy;
&#169;
Copyright sign
symbol&reg;
&#174;
Registered sign = registered trademark sign
symbol&trade;
&#8482;
Trademark sign
Markup-Significant
symbol&lt;
&#60;
Less-than sign
symbol&gt;
&#62;
Greater-than sign
symbol&amp;
&#38;
Ampersand
symbol&quot;
&#34;
Quotation mark / quote
Currency
symbol&cent;
&#162;
Cent sign
symbol&pound;
&#163;
Pound sign
symbol&curren;
&#164;
Currency sign
symbol&yen;
&#165;
Yen sign = yuan sign
symbol&euro;
&#8364;
Euro sign

General Punctuation
symbol&quot;
&#34;
Quotation mark / quote
symbol&lsquo;
&#8216;
Left single quotation mark
symbol&rsquo;
&#8217;
Right single quotation mark
symbol&ldquo;
&#8220;
Left double quotation mark
symbol&rdquo;
&#8221;
Right double quotation mark
symbol&sbquo;
&#8218;
Single low-9 quotation mark
symbol&bdquo;
&#8222;
Double low-9 quotation mark
symbol&ndash;
&#8211;
En dash
symbol&mdash;
&#8212;
Em dash

symbol&dagger;
&#8224;
Dagger
symbol&Dagger;
&#8225;
Double dagger
symbol&lsaquo;
&#8249;
Single left-pointing angle quotation mark (proposed, but not yet standardized)
symbol&rsaquo;
&#8250;
Single right-pointing angle quotation mark (proposed, but not yet standardized)
symbol&laquo;
&#171;
Left-pointing double angle quotation mark = left-pointing guillemot
symbol&raquo;
&#187;
Right-pointing double angle quotation mark = right pointing guillemet
symbol&amp;
&#38;
Ampersand
symbol&para;
&#182;
Pilcrow sign = paragraph sign
symbol&crarr;
&#8629;
Down arrow with corner leftward = carriage return

Maths
symbol&minus;
&#8722;
Minus sign
symbol&times;
&#215;
Multiplication sign
symbol&divide;
&#247;
Division sign
symbol&radic;
&#8730;
Square root = radical sign
symbol&prop;
&#8733;
Proportional to
symbol&infin;
&#8734;
Infinity
symbol&lowast;
&#8727;
Asterisk operator
symbol&ang;
&#8736;
Angle
symbol&deg;
&#176;
Degree sign
symbol&plusmn;
&#177;
Plus-minus sign = plus-or-minus sign
symbol&not;
&#172;
Not sign

symbol&lt;
&#60;
Less-than sign
symbol&gt;
&#62;
Greater-than sign
symbol&le;
&#8804;
Less than or equal to
symbol&ge;
&#8805;
Greater than or equal to
symbol&int;
&#8747;
Integral
symbol&there4;
&#8756;
Therefore
symbol&sim;
&#8764;
Tilde operator = varies with = similar to
symbol&cong;
&#8773;
Approximately equal to
symbol&asymp;
&#8776;
Almost equal to = asymptotic to
symbol&ne;
&#8800;
Not equal to
symbol&equiv;
&#8801;
Identical to

symbol&cap;
&#8745;
Intersection = cap
symbol&cup;
&#8746;
Union = cup
symbol&sub;
&#8834;
Subset of
symbol&sup;
&#8835;
Superset of
symbol&nsub;
&#8836;
Not a subset of
symbol&sube;
&#8838;
Subset of or equal to
symbol&supe;
&#8839;
Superset of or equal to
symbol&oplus;
&#8853;
Circled plus = direct sum
symbol&otimes;
&#8855;
Circled times = vector product
symbol&perp;
&#8869;
Up tack = orthogonal to = perpendicular
symbol&fnof;
&#402;
Latin small f with hook = function = florin

symbol&sup1;
&#185;
Superscript one = superscript digit one
symbol&sup2;
&#178;
Superscript two = superscript digit two = squared
symbol&sup3;
&#179;
Superscript three = superscript digit three = cubed
symbol&frac14;
&#188;
Vulgar fraction one-quarter = fraction one-quarter
symbol&frac12;
&#189;
Vulgar fraction one-half = fraction one-half
symbol&frac34;
&#190;
Vulgar fraction three-quarters = fraction three-quarters
symbol&sdot;
&#8901;
Dot operator
symbol&permil;
&#8240;
Per mille sign
symbol&and;
&#8743;
Logical and = wedge
symbol&or ;
&#8744;
Logical or = vee

symbol&forall;
&#8704;
For all
symbol&part ;
&#8706;
Partial differential
symbol&exist;
&#8707;
There exists
symbol&empty;
&#8709;
Empty set = null set = diameter
symbol&nabla;
&#8711;
Nabla = backward difference
symbol&isin;
&#8712;
Element of
symbol&notin;
&#8713;
Not an element of
symbol&ni;
&#8715;
Contains as member
symbol&prod;
&#8719;
n-ary product = product sign
symbol&sum;
&#8721;
n-ary summation

Miscellaneous Symbols
symbol&spades;
&#9824;
Spades
symbol&clubs;
&#9827;
Clubs
symbol&hearts;
&#9829;
Hearts
symbol&diams;
&#9830;
Diamonds
symbol&lceil;
&#8968;
Left ceiling
symbol&rceil;
&#8969;
Right ceiling
symbol&lfloor;
&#8970;
Left floor
symbol&rfloor;
&#8971;
Right floor
symbol&lang;
&#9001;
Left-pointing angle bracket
symbol&rang;
&#9002;
Right-pointing angle bracket
symbol&loz;
&#9674;
Lozenge

symbol&uml;
&#168;
Diaeresis = spacing diaeresis
symbol&acute;
&#180;
Acute accent = spacing acute
symbol&cedil;
&#184;
Cedilla = spacing cedilla
symbol&iexcl;
&#161;
Inverted exclamation mark
symbol&iquest;
&#191;
Inverted question mark = turned question mark
symbol&brvbar;
&#166;
Broken bar = broken vertical bar
symbol&shy;
&#173;
Soft hyphen = discretionary hyphen
symbol&macr;
&#175;
Macron = spacing macron = overline = APL overbar
symbol&middot;
&#183;
Middle dot = Georgian comma = Greek middle dot

symbol&weierp;
&#8472;
Script capital P = power set = Weierstrass p
symbol&image;
&#8465;
Blackletter capital I = imaginary part
symbol&real;
&#8476;
Blackletter capital R = real part symbol
symbol&alefsym;
&#8501;
Alef symbol = first transfinite cardinal
symbol&sect;
&#167;
Section sign
symbol&ordf;
&#170;
Feminine ordinal indicator
symbol&ordm;
&#186;
Masculine ordinal indicator
symbol&micro;
&#181;
Micro sign

Arrows
symbol&larr;
&#8592;
Left arrow
symbol&uarr;
&#8593;
Up arrow
symbol&rarr;
&#8594;
Right arrow
symbol&darr;
&#8595;
Down arrow
symbol&harr;
&#8596;
Left-right arrow
symbol&crarr;
&#8629;
Down arrow with corner leftward = carriage return
symbol&lArr;
&#8656;
Left double arrow
symbol&uArr;
&#8657;
Up double arrow
symbol&rArr;
&#8658;
Right double arrow
symbol&dArr;
&#8659;
Down double arrow
symbol&hArr;
&#8660;
Left-right double arrow

Greek Letters Uppercase
symbol&Alpha;
&#913;
Greek capital letter alpha
symbol&Beta;
&#914;
Greek capital letter beta
symbol&Gamma;
&#915;
Greek capital letter gamma
symbol&Delta;
&#916;
Greek capital letter delta
symbol&Epsilon;
&#917;
Greek capital letter epsilon
symbol&Zeta;
&#918;
Greek capital letter zeta
symbol&Eta;
&#919;
Greek capital letter eta
symbol&Theta;
&#920;
Greek capital letter theta
symbol&Iota;
&#921;
Greek capital letter iota
symbol&Kappa;
&#922;
Greek capital letter kappa
symbol&Lambda;
&#923;
Greek capital letter lambda
symbol&Mu
&#924;
Greek capital letter mu
symbol&Nu;
&#925;
Greek capital letter nu
symbol&Xi;
&#926;
Greek capital letter xi
symbol&Omicron;
&#927;
Greek capital letter omicron
symbol&Pi;
&#928;
Greek capital letter pi
symbol&Rho;
&#929;
Greek capital letter rho
symbol&Sigma;
&#931;
Greek capital letter sigma
symbol&Tau;
&#932;
Greek capital letter tau
symbol&Upsilon;
&#933;
Greek capital letter upsilon
symbol&Phi;
&#934;
Greek capital letter phi
symbol&Chi;
&#935;
Greek capital letter chi
symbol&Psi;
&#936;
Greek capital letter psi
symbol&Omega;
&#937;
Greek capital letter omega


Greek Alphabet Lowercase
symbol&alpha;
&#945;
Greek small letter alpha
symbol&beta;
&#946;
Greek small letter beta
symbol&gamma;
&#947;
Greek small letter gamma
symbol&delta;
&#948;
Greek small letter delta
symbol&epsilon;
&#949;
Greek small letter epsilon
symbol&zeta;
&#950;
Greek small letter zeta
symbol&eta;
&#951;
Greek small letter eta
symbol&theta;
&#952;
Greek small letter theta
symbol&iota;
&#953;
Greek small letter iota
symbol&kappa;
&#954;
Greek small letter kappa
symbol&lambda;
&#955;
Greek small letter lambda
symbol&mu;
&#956;
Greek small letter mu
symbol&nu;
&#957;
Greek small letter nu
symbol&xi;
&#958;
Greek small letter xi
symbol&omicron;
&#959;
Greek small letter omicron
symbol&pi;
&#960;
Greek small letter pi
symbol&rho;
&#961;
Greek small letter rho
symbol&sigmaf;
&#962;
Greek small letter final sigma
symbol&sigma;
&#963;
Greek small Greek sigma
symbol&tau;
&#964;
Greek small letter tau
symbol&upsilon;
&#965;
Greek small letter upsilon
symbol&phi;
&#966;
Greek small letter phi
symbol&chi;
&#967;
Greek small letter chi
symbol&psi;
&#968;
Greek small letter psi
symbol&omega;
&#969;
Greek small letter omega
symbol&thetasym;
&#977;
Greek small letter theta symbol
symbol&upsih;
&#978;
Greek upsilon with hook symbol
symbol&piv;
&#982;
Greek pi symbol

Latin Characters Uppercase
symbol&oelig;
&#339;
Latin small ligature oe
symbol&Agrave;
&#192;
Latin capital letter A with grave = Latin capital letter A grave
symbol&Aacute;
&#193;
Latin capital letter A with acute
symbol&Acirc;
&#194;
Latin capital letter A with circumflex
symbol&Atilde;
&#195;
Latin capital letter A with tilde
symbol&Auml;
&#196;
Latin capital letter A with diaeresis
symbol&Aring;
&#197;
Latin capital letter A with ring above = Latin capital letter A ring
symbol&AElig;
&#198;
Latin capital letter AE = Latin capital ligature AE
symbol&Ccedil;
&#199;
Latin capital letter C with cedilla
symbol&Egrave;
&#200;
Latin capital letter E with grave
symbol&Eacute;
&#201;
Latin capital letter E with acute
symbol&Ecirc;
&#202;
Latin capital letter E with circumflex
symbol&Euml;
&#203;
Latin capital letter E with diaeresis
symbol&Igrave;
&#204;
Latin capital letter I with grave
symbol&Iacute;
&#205;
Latin capital letter I with acute
symbol&Icirc;
&#206;
Latin capital letter I with circumflex
symbol&Iuml;
&#207;
Latin capital letter I with diaeresis
symbol&ETH;
&#208;
Latin capital letter ETH
symbol&Ntilde;
&#209;
Latin capital letter N with tilde
symbol&Ograve;
&#210;
Latin capital letter O with grave
symbol&Oacute;
&#211;
Latin capital letter O with acute
symbol&Ocirc;
&#212;
Latin capital letter O with circumflex
symbol&Otilde;
&#213;
Latin capital letter O with tilde
symbol&Ouml;
&#214;
Latin capital letter O with diaeresis
symbol&Oslash;
&#216;
Latin capital letter O with stroke = Latin capital letter O slash
symbol&Scaron;
&#352;
Latin capital letter S with caron
symbol&Ugrave;
&#217;
Latin capital letter U with grave
symbol&Uacute;
&#218;
Latin capital letter U with acute
symbol&Ucirc;
&#219;
Latin capital letter U with circumflex
symbol&Uuml;
&#220;
Latin capital letter U with diaeresis
symbol&Yacute;
&#221;
Latin capital letter Y with acute
symbol&Yuml;
&#376;
Latin capital letter Y with diaeresis
symbol&THORN;
&#222;
Latin capital letter THORN

Latin Characters Lowercase
symbol&OElig;
&#338;
Latin capital ligature OE
symbol&szlig;
&#223;
Latin small letter sharp s = ess-zed
symbol&agrave;
&#224;
Latin small letter a with grave = Latin small letter agrave
symbol&aacute;
&#225;
Latin small letter a with acute
symbol&acirc;
&#226;
Latin small letter a with circumflex
symbol&atilde;
&#227;
Latin small letter a with tilde
symbol&auml;
&#228;
Latin small letter a with diaeresis
symbol&aring;
&#229;
Latin small letter a with ring above = Latin small letter a ring
symbol&aelig;
&#230;
Latin small letter ae = Latin small ligature ae
symbol&ccedil;
&#231;
Latin small letter c with cedilla
symbol&egrave;
&#232;
Latin small letter e with grave
symbol&eacute;
&#233;
Latin small letter e with acute
symbol&ecirc;
&#234;
Latin small letter e with circumflex
symbol&euml;
&#235;
Latin small letter e with diaeresis
symbol&fnof;
&#402;
Latin small f with hook = function = florin
symbol&igrave;
&#236;
Latin small letter i with grave
symbol&iacute;
&#237;
Latin small letter i with acute
symbol&icirc;
&#238;
Latin small letter i with circumflex
symbol&iuml;
&#239;
Latin small letter i with diaeresis
symbol&eth;
&#240;
Latin small letter eth
symbol&ntilde;
&#241;
Latin small letter n with tilde
symbol&ograve;
&#242;
Latin small letter o with grave
symbol&oacute;
&#243;
Latin small letter o with acute
symbol&ocirc;
&#244;
Latin small letter o with circumflex
symbol&otilde;
&#245;
Latin small letter o with tilde
symbol&ouml;
&#246;
Latin small letter o with diaeresis
symbol&oslash;
&#248;
Latin small letter o with stroke, = Latin small letter o slash
symbol&ugrave;
&#249;
Latin small letter u with grave
symbol&uacute;
&#250;
Latin small letter u with acute
symbol&ucirc;
&#251;
Latin small letter u with circumflex
symbol&uuml;
&#252;
Latin small letter u with diaeresis
symbol&scaron;
&#353;
Latin small letter s with caron
symbol&yacute;
&#253;
Latin small letter y with acute
symbol&yuml;
&#255;
Latin small letter y with diaeresis
symbol&thorn;þ
 #254;
Latin small letter thorn
Hover over image to view escape code
  • Hover over your chosen symbol
  • The escape code pops up
copyright symbol&copy;
&#169;
Copyright symbol
Copyright &copy; &#169;
symbol&reg;
&#174;
Registered sign = registered trademark sign
Registered trademark &reg; &#174;
symbol&trade;
&#8482;
Trademark sign
Trademark &trade; &#8482;
less than icon&lt;
&#60;
Less-than sign
Less than &lt; &#60;
symbol&gt;
&#62;
Greater-than sign
Greater than &gt; &#62;
symbol&amp;
&#38;
Ampersand
Ampersand &amp; &#38;
symbol&quot;
&#34;
Quotation mark / quote
Quotation mark &quot; &#34;
symbol&cent;
&#162;
Cent sign
Cent &cent; &162;
symbol&pound;
&#163;
Pound sign
Pound &pound; &163;
symbol&curren;
&#164;

Currency sign
Currency &curren; &164;
symbol&yen;
&#165;
Yen sign = yuan sign
Yen &yen; &165;
symbol&euro;
&#8364;
Euro sign
Euro &euro; &8364;