
For example, this unremarkably looks skillful as well as when yous click on this link, yous should run across the letters inward the right way:
alert(" á é í ó ú ☺ ✛ ❤ ");If nosotros are trying to role other method as well as nosotros desire to role this type of characters, sometimes nosotros ask to write them inward a particular format called escape sequence which is zero simply a backslash followed past times a alphabetic lineament as well as a set out inward hexadecimal format. In the instance of mutual characters or accents, it would travel \x followed past times 2 hex digits:
\xe1 is the alphabetic lineament áOther combinations generate particular characters:
\xe9 is the alphabetic lineament é
\xed is the alphabetic lineament í
\xf3 is the alphabetic lineament ó
\xfa is the alphabetic lineament ú
\n is a trace of piece of employment breakOr nosotros tin role \u followed past times the Unicode grapheme code expressed every bit iv hexadecimal digits:
\t is the tab character
\' is unmarried quote
\" is double quote
\\ is a dorsum slash
\u00e1 is the alphabetic lineament áThis volition allow us to see correctly what nosotros couldn't earlier if nosotros were using another services:
\u00e9 is the alphabetic lineament é
\u00ed is the alphabetic lineament í
\u00f3 is the alphabetic lineament ó
\u00fa is the alphabetic lineament ú
alert(" \u263a \u2764 \u271b ");On this page yous tin notice a comprehensive listing of all the characters, both symbols as well as unlike alphabets.
Although rare characters are non ofttimes used inward the CSS, in that place is a instance when they are necessary every bit well, similar when using the content belongings amongst the :after as well as :before pseudo-elements.
The same criteria applies there, simply nosotros alone ask to add together a backslash followed past times the four-digit hexadecimal code. For example:
content: ":\24d1\24d4\24d5\24de\24e1\24d4";
content: ":after \263a \2724 \2602";
:ⓑⓔⓕⓞⓡⓔ
:after ☺ ✤ ☂
Remember that IE doesn't sympathize the :before pseudoclass amongst content, as well as yous would accept to fix the list-style-type belongings every bit none, or yous would become 2 bullets inward CSS compliant browsers.
Comments