--- title: 'HTML-сущности и их UTF-коды' description: "Таблица HTML-сущностей и соотвествующих им UTF-кодов." excerpt: "Свойство `content:'x'` отображает HTML-сущности так, как они записаны в CSS, не заменяет их на специальные символы. Например, напишем в CSS `content:'&rarr;'`, получим в браузере «&rarr;» вместо «→». Поэтому писать спецальные символы в `content` нужно 4-значными UTF-кодами (UTF-16 hex), экранированными обратным слэшем." created_at: 2012-03-11 kind: article publish: true tags: [css] starred: true badge: 'справочник' badgetype: 'badge-directory' disqusid: htmlentities styles: ["custom.css"] og_image: '/i/og/og-paulradzkov-2012-html-entities_and_utf_codes.png' ---

Генерируемое содержимое псевдоклассов `:before` и `:after` очень удобно использовать для создания иконок, буллитов, кавычек и в прочих декоративных целях.

Но свойство `content: '\203A';` отображает HTML-сущности так, как они записаны в CSS, не заменяет их на специальные символы. Например, напишем в CSS `content: '&rarr;';`, получим в браузере «&rarr;» вместо «→». Поэтому писать спецальные символы в `content` нужно 4-значными UTF-кодами (UTF-16 hex), экранированными обратным слэшем.

Пример CSS-кода:

    p.readmore a:after {
        content: '\203A'; /* выведет › */
        position: absolute;
        right: 0.8em;
        top: 4px;
        display: block;
    }

## Таблица символов

Символ | HTML-entity | UTF-код | Название
--- | --- | --- | ---
Кавычки
‹ | `&lsaquo;` | `\2039` | single left-pointing angle quotation mark
› | `&rsaquo;` | `\203A` | single right-pointing angle quotation mark
« | `&laquo;` | `\00AB` | left-pointing double angle quotation mark = left pointing guillemet
» | `&raquo;` | `\00BB` | right-pointing double angle quotation mark = right pointing guillemet
‚ | `&sbquo;` | `\201A` | single bottom quotation mark
‘ | `&lsquo;` | `\2018` | left single quotation mark
’ | `&rsquo;` | `\2019` | right single quotation mark
„ | `&bdquo;` | `\201E` | bottom double quotation mark
“ | `&ldquo;` | `\201C` | left double quotation mark
” | `&rdquo;` | `\201D` | right double quotation mark
" | `&quot;` | `\0022` | APL quote (прямая программистская кавычка с клавиатуры)
′ | `&prime;` | `\2032` | prime = minutes = feet
″ | `&Prime;` | `\2033` | double prime = seconds = inches
Тире и другие знаки препинания
— | `&mdash;` | `\2014` | em dash
– | `&ndash;` | `\2013` | en dash
… | `&hellip;` | `\2026` | horizontal ellipsis = three dot leader
¡ | `&iexcl;` | `\00A1` | inverted exclamation mark
¿ | `&iquest;` | `\00BF` | inverted question mark = turned question mark
Стрелки
← | `&larr;` | `\2190` | leftwards arrow
→ | `&rarr;` | `\2192` | rightwards arrow
↑ | `&uarr;` | `\2191` | upwards arrow
↓ | `&darr;` | `\2193` | downwards arrow
⇐ | `&lArr;` | `\21D0` | leftwards double arrow
⇒ | `&rArr;` | `\21D2` | rightwards double arrow
⇑ | `&uArr;` | `\21D1` | upwards double arrow
⇓ | `&dArr;` | `\21D3` | downwards double arrow
↔ | `&harr;` | `\2194` | left right arrow
⇔ | `&hArr;` | `\21D4` | left right double arrow
↵ | `&crarr;` | `\21B5` | downwards arrow with corner leftwards = carriage return
Буллиты
• | `&bull;` | `\2022` | bullet
· | `&middot;` | `\00B7` | middle dot
⋅ | `&sdot;` | `\22C5` | dot operator
∗ | `&lowast;` | `\2217` | low asterisk
♣ | `&clubs;` | `\2663` | black club suit
♦ | `&diams;` | `\2666` | black diamond suit
♥ | `&hearts;` | `\2665` | black heart suit
♠ | `&spades;` | `\2660` | black spade suit
◊ | `&loz;` | `\25CA` | lozenge
Пробельные символы
m m | `` | `\0020` | обыкновенный пробел
m m | `&nbsp;` | `\00A0` | no-break space = non-breaking space
n n | `&ensp;` | `\2002` | en space
m m | `&emsp;` | `\2003` | em space
_ _ | `&thinsp;` | `\2009` | thin space
_‍_ | `&zwj;` | `\200D` | zero width joiner
_‌_ | `&zwnj;` | `\200C` | zero width non-joiner
Математические символы
× | `&times;` | `\00D7` | multiplication sign
÷ | `&divide;` | `\00F7` | division sign
⁄ | `&frasl;` | `\2044` | fraction slash
− | `&minus;` | `\2212` | minus sign
± | `&plusmn;` | `\00B1` | plus-minus sign = plus-or-minus sign
< | `&lt;` | `\003C` | less-than sign
> | `&gt;` | `\003E` | greater-than sign
≤ | `&le;` | `\2264` | less-than or equal to
≥ | `&ge;` | `\2265` | greater-than or equal to
≈ | `&asymp;` | `\2248` | almost equal to = asymptotic to
≅ | `&cong;` | `\2245` | approximately equal to
≡ | `&equiv;` | `\2261` | identical to
≠ | `&ne;` | `\2260` | not equal to
° | `&deg;` | `\00B0` | degree sign
½ | `&frac12;` | `\00BD` | vulgar fraction one half = fraction one half
¼ | `&frac14;` | `\00BC` | vulgar fraction one quarter = fraction one quarter
¾ | `&frac34;` | `\00BE` | vulgar fraction three quarters = fraction three quarters
¹ | `&sup1;` | `\00B9` | superscript one = superscript digit one
² | `&sup2;` | `\00B2` | superscript two = superscript digit two = squared
³ | `&sup3;` | `\00B3` | superscript three = superscript digit three = cubed
& | `&amp;` | `\0026` | ampersand
∼ | `&sim;` | `\223C` | tilde operator = varies with = similar to
∧ | `&and;` | `\2227` | logical and = wedge
∨ | `&or;` | `\2228` | logical or = vee
¬ | `&not;` | `\00AC` | not sign
ℵ | `&alefsym;` | `\2135` | alef symbol = first transfinite cardinal
∠ | `&ang;` | `\2220` | angle
∩ | `&cap;` | `\2229` | intersection = cap
∪ | `&cup;` | `\222A` | union = cup
⊂ | `&sub;` | `\2282` | subset of
⊆ | `&sube;` | `\2286` | subset of or equal to
⊃ | `&sup;` | `\2283` | superset of
⊇ | `&supe;` | `\2287` | superset of or equal to
∋ | `&ni;` | `\220B` | contains as member
∈ | `&isin;` | `\2208` | element of
∉ | `&notin;` | `\2209` | not an element of
⊄ | `&nsub;` | `\2284` | not a subset of
∃ | `&exist;` | `\2203` | there exists
ƒ | `&fnof;` | `\0192` | latin small f with hook = function = florin
∀ | `&forall;` | `\2200` | for all
∞ | `&infin;` | `\221E` | infinity
∫ | `&int;` | `\222B` | integral
∗ | `&lowast;` | `\2217` | asterisk operator
µ | `&micro;` | `\00B5` | micro sign
∇ | `&nabla;` | `\2207` | nabla = backward difference
∂ | `&part;` | `\2202` | partial differential
⊥ | `&perp;` | `\22A5` | up tack = orthogonal to = perpendicular
∏ | `&prod;` | `\220F` | n-ary product = product sign
∝ | `&prop;` | `\221D` | proportional to
√ | `&radic;` | `\221A` | square root = radical sign
⋅ | `&sdot;` | `\22C5` | dot operator
∑ | `&sum;` | `\2211` | n-ary sumation
∅ | `&empty;` | `\2205` | empty set = null set = diameter
⊕ | `&oplus;` | `\2295` | circled plus = direct sum
⊗ | `&otimes;` | `\2297` | circled times = vector product
∴ | `&there4;` | `\2234` | therefore
⟨ | `&lang;` | `\2329` | left-pointing angle bracket = bra
⟩ | `&rang;` | `\232A` | right-pointing angle bracket = ket
⌈ | `&lceil;` | `\2308` | left ceiling = apl upstile
⌊ | `&lfloor;` | `\230A` | left floor = apl downstile
⌉ | `&rceil;` | `\2309` | right ceiling
⌋ | `&rfloor;` | `\230B` | right floor
Знаки валют
¤ | `&curren;` | `\00A4` | currency sign
¢ | `&cent;` | `\00A2` | cent sign
€ | `&euro;` | `\20AC` | euro sign
£ | `&pound;` | `\00A3` | pound sign
¥ | `&yen;` | `\00A5` | yen sign = yuan sign
Прочие символы
© | `&copy;` | `\00A9` | copyright sign
™ | `&trade;` | `\2122` | trade mark sign
® | `&reg;` | `\00AE` | registered sign = registered trade mark sign
§ | `&sect;` | `\00A7` | section sign
¦ | `&brvbar;` | `\00A6` | broken bar = broken vertical bar
† | `&dagger;` | `\2020` | dagger
‡ | `&Dagger;` | `\2021` | double dagger
ℑ | `&image;` | `\2111` | blackletter capital I = imaginary part
ℜ | `&real;` | `\211C` | blackletter capital R = real part symbol
℘ | `&weierp;` | `\2118` | script capital P = power set = Weierstrass p
‾ | `&oline;` | `\203E` | overline = spacing overscore
ª | `&ordf;` | `\00AA` | feminine ordinal indicator
º | `&ordm;` | `\00BA` | masculine ordinal indicator
¶ | `&para;` | `\00B6` | pilcrow sign = paragraph sign
‰ | `&permil;` | `\2030` | per mille sign
| `&shy;` | `\00AD` | soft hyphen = discretionary hyphen
‎‎ | `&lrm;‎` | `\200E` | left-to-right mark (for formatting only)
‏‏ | `&rlm;‏` | `\200F` | right-to-left mark (for formatting only)
Греческий алфавит
Α | `&Alpha;` | `\0391` | greek capital letter alpha
α | `&alpha;` | `\03B1` | greek small letter alpha
Β | `&Beta;` | `\0392` | greek capital letter beta
β | `&beta;` | `\03B2` | greek small letter beta
Γ | `&Gamma;` | `\0393` | greek capital letter gamma
γ | `&gamma;` | `\03B3` | greek small letter gamma
Δ | `&Delta;` | `\0394` | greek capital letter delta
δ | `&delta;` | `\03B4` | greek small letter delta
Ε | `&Epsilon;` | `\0395` | greek capital letter epsilon
ε | `&epsilon;` | `\03B5` | greek small letter epsilon
Ζ | `&Zeta;` | `\0396` | greek capital letter zeta
ζ | `&zeta;` | `\03B6` | greek small letter zeta
Η | `&Eta;` | `\0397` | greek capital letter eta
η | `&eta;` | `\03B7` | greek small letter eta
Θ | `&Theta;` | `\0398` | greek capital letter theta
θ | `&theta;` | `\03B8` | greek small letter theta
ϑ | `&thetasym;` | `\03D1` | greek small letter theta symbol
Ι | `&Iota;` | `\0399` | greek capital letter iota
ι | `&iota;` | `\03B9` | greek small letter iota
Κ | `&Kappa;` | `\039A` | greek capital letter kappa
κ | `&kappa;` | `\03BA` | greek small letter kappa
Λ | `&Lambda;` | `\039B` | greek capital letter lambda
λ | `&lambda;` | `\03BB` | greek small letter lambda
Μ | `&Mu;` | `\039C` | greek capital letter mu
μ | `&mu;` | `\03BC` | greek small letter mu
Ν | `&Nu;` | `\039D` | greek capital letter nu
ν | `&nu;` | `\03BD` | greek small letter nu
Ξ | `&Xi;` | `\039E` | greek capital letter xi
ξ | `&xi;` | `\03BE` | greek small letter xi
Ο | `&Omicron;` | `\039F` | greek capital letter omicron
ο | `&omicron;` | `\03BF` | greek small letter omicron
Π | `&Pi;` | `\03A0` | greek capital letter pi
π | `&pi;` | `\03C0` | greek small letter pi
ϖ | `&piv;` | `\03D6` | greek pi symbol
Ρ | `&Rho;` | `\03A1` | greek capital letter rho
ρ | `&rho;` | `\03C1` | greek small letter rho
Σ | `&Sigma;` | `\03A3` | greek capital letter sigma
σ | `&sigma;` | `\03C3` | greek small letter sigma
ς | `&sigmaf;` | `\03C2` | greek small letter final sigma (note)
Τ | `&Tau;` | `\03A4` | greek capital letter tau
τ | `&tau;` | `\03C4` | greek small letter tau
Υ | `&Upsilon;` | `\03A5` | greek capital letter upsilon
υ | `&upsilon;` | `\03C5` | greek small letter upsilon
ϒ | `&upsih;` | `\03D2` | greek upsilon with hook symbol
Φ | `&Phi;` | `\03A6` | greek capital letter phi
φ | `&phi;` | `\03C6` | greek small letter phi
Χ | `&Chi;` | `\03A7` | greek capital letter chi
χ | `&chi;` | `\03C7` | greek small letter chi
Ψ | `&Psi;` | `\03A8` | greek capital letter psi
ψ | `&psi;` | `\03C8` | greek small letter psi
Ω | `&Omega;` | `\03A9` | greek capital letter omega
ω | `&omega;` | `\03C9` | greek small letter omega
Диакритические знаки
´ | `&acute;` | `\00B4` | acute accent = spacing acute
¸ | `&cedil;` | `\00B8` | cedilla = spacing cedilla
ˆ | `&circ;` | `\02C6` | modifier letter circumflex accent
¯ | `&macr;` | `\00AF` | macron = spacing macron = overline = APL overbar
· | `&middot;` | `\00B7` | middle dot = Georgian comma = Greek middle dot
˜ | `&tilde;` | `\02DC` | small tilde
¨ | `&uml;` | `\00A8` | diaeresis = spacing diaeresis
Латиница с диакритическими знаками
Á | `&Aacute;` | `\00C1` | latin capital letter A with acute
á | `&aacute;` | `\00E1` | latin small letter a with acute
Â | `&Acirc;` | `\00C2` | latin capital letter A with circumflex
â | `&acirc;` | `\00E2` | latin small letter a with circumflex
Æ | `&AElig;` | `\00C6` | latin capital letter AE = latin capital ligature AE
æ | `&aelig;` | `\00E6` | latin small letter ae = latin small ligature ae
À | `&Agrave;` | `\00C0` | latin capital letter A with grave = latin capital letter A grave
à | `&agrave;` | `\00E0` | latin small letter a with grave = latin small letter a grave
Å | `&Aring;` | `\00C5` | latin capital letter A with ring above = latin capital letter A ring
å | `&aring;` | `\00E5` | latin small letter a with ring above = latin small letter a ring
Ã | `&Atilde;` | `\00C3` | latin capital letter A with tilde
ã | `&atilde;` | `\00E3` | latin small letter a with tilde
Ä | `&Auml;` | `\00C4` | latin capital letter A with diaeresis
ä | `&auml;` | `\00E4` | latin small letter a with diaeresis
Ç | `&Ccedil;` | `\00C7` | latin capital letter C with cedilla
ç | `&ccedil;` | `\00E7` | latin small letter c with cedilla
É | `&Eacute;` | `\00C9` | latin capital letter E with acute
é | `&eacute;` | `\00E9` | latin small letter e with acute
Ê | `&Ecirc;` | `\00CA` | latin capital letter E with circumflex
ê | `&ecirc;` | `\00EA` | latin small letter e with circumflex
È | `&Egrave;` | `\00C8` | latin capital letter E with grave
è | `&egrave;` | `\00E8` | latin small letter e with grave
Ð | `&ETH;` | `\00D0` | latin capital letter ETH
ð | `&eth;` | `\00F0` | latin small letter eth
Ë | `&Euml;` | `\00CB` | latin capital letter E with diaeresis
ë | `&euml;` | `\00EB` | latin small letter e with diaeresis
Í | `&Iacute;` | `\00CD` | latin capital letter I with acute
í | `&iacute;` | `\00ED` | latin small letter i with acute
Î | `&Icirc;` | `\00CE` | latin capital letter I with circumflex
î | `&icirc;` | `\00EE` | latin small letter i with circumflex
Ì | `&Igrave;` | `\00CC` | latin capital letter I with grave
ì | `&igrave;` | `\00EC` | latin small letter i with grave
Ï | `&Iuml;` | `\00CF` | latin capital letter I with diaeresis
ï | `&iuml;` | `\00EF` | latin small letter i with diaeresis
Ñ | `&Ntilde;` | `\00D1` | latin capital letter N with tilde
ñ | `&ntilde;` | `\00F1` | latin small letter n with tilde
Ó | `&Oacute;` | `\00D3` | latin capital letter O with acute
ó | `&oacute;` | `\00F3` | latin small letter o with acute
Ô | `&Ocirc;` | `\00D4` | latin capital letter O with circumflex
ô | `&ocirc;` | `\00F4` | latin small letter o with circumflex
Œ | `&OElig;` | `\0152` | latin capital ligature OE
œ | `&oelig;` | `\0153` | latin small ligature oe
Ò | `&Ograve;` | `\00D2` | latin capital letter O with grave
ò | `&ograve;` | `\00F2` | latin small letter o with grave
Ø | `&Oslash;` | `\00D8` | latin capital letter O with stroke = latin capital letter O slash
ø | `&oslash;` | `\00F8` | latin small letter o with stroke, = latin small letter o slash
Õ | `&Otilde;` | `\00D5` | latin capital letter O with tilde
õ | `&otilde;` | `\00F5` | latin small letter o with tilde
Ö | `&Ouml;` | `\00D6` | latin capital letter O with diaeresis
ö | `&ouml;` | `\00F6` | latin small letter o with diaeresis
Š | `&Scaron;` | `\0160` | latin capital letter S with caron
š | `&scaron;` | `\0161` | latin small letter s with caron
ß | `&szlig;` | `\00DF` | latin small letter sharp s = ess-zed
Þ | `&THORN;` | `\00DE` | latin capital letter THORN
þ | `&thorn;` | `\00FE` | latin small letter thorn
Ú | `&Uacute;` | `\00DA` | latin capital letter U with acute
ú | `&uacute;` | `\00FA` | latin small letter u with acute
Û | `&Ucirc;` | `\00DB` | latin capital letter U with circumflex
û | `&ucirc;` | `\00FB` | latin small letter u with circumflex
Ù | `&Ugrave;` | `\00D9` | latin capital letter U with grave
ù | `&ugrave;` | `\00F9` | latin small letter u with grave
Ü | `&Uuml;` | `\00DC` | latin capital letter U with diaeresis
ü | `&uuml;` | `\00FC` | latin small letter u with diaeresis
Ý | `&Yacute;` | `\00DD` | latin capital letter Y with acute
ý | `&yacute;` | `\00FD` | latin small letter y with acute
Ÿ | `&Yuml;` | `\0178` | latin capital letter Y with diaeresis
ÿ | `&yuml;` | `\00FF` | latin small letter y with diaeresis