JS Escape Sequence | HTML Entity
Last Updated :
27 Jul, 2020
There are certain symbols in HTML that always seem to break your program. These include math, currency, greek alphabet symbol, etc. Either they are not available in your keyboard or browser to interpret them differently to what you intended. So here is the list to HTML code for different symbol and JavaScript escape sequence for the same.
Special Symbol:
Char |
HTML Code |
JS Escape Sequence |
! |
! |
\u0021 |
“ |
" |
\u0022 |
# |
# |
\u0023 |
$ |
$ |
\u0024 |
% |
% |
\u0025 |
& |
& |
\u0026 |
‘ |
' |
\u0027 |
( |
( |
\u0028 |
) |
) |
\u0029 |
< |
< |
\u003C |
> |
> |
\u003E |
Capital Letters: All the letters starting from A and ending at Z has special HTML code and JS Escape Sequence. In HTML, they start with A, and end at Z, and in JavaScript they increase from A to I with \u0041 to \u0048 respectively and then from J to O representation changes to \u004A to \u004F. Then from P to Y, the value increases from \u0055 to \u0059. Finally for Z we have \u005A.
Char |
HTML Code |
JS Escape Sequence |
A |
A |
\u0041 |
B |
B |
\u0042 |
C |
C |
\u0043 |
D |
D |
\u0044 |
E |
E |
\u0045 |
F |
F |
\u0046 |
G |
G |
\u0046 |
H |
H |
\u0047 |
I |
I |
\u0048 |
J |
J |
\u004A |
K |
K |
\u004B |
L |
L |
\u004C |
M |
M |
\u004D |
N |
N |
\u004E |
O |
O |
\u004F |
P |
P |
\u0050 |
Q |
Q |
\u0051 |
R |
R |
\u0052 |
S |
S |
\u0053 |
T |
T |
\u0054 |
U |
U |
\u0055 |
V |
V |
\u0056 |
W |
W |
\u0057 |
X |
X |
\u0058 |
Y |
Y |
\u0059 |
Z |
Z |
\u005A |
Numbers: All the numbers starting from 0 and ending at 9 has special HTML code and JavaScript Escape Sequence. In HTML they start with 0, and end at 9 and in JavaScript they start from \u0030 and end at \u0039.
Char |
HTML Code |
JS Escape Sequence |
0 |
0 |
\u0030 |
1 |
1 |
\u0031 |
2 |
2 |
\u0032 |
3 |
3 |
\u0033 |
4 |
4 |
\u0034 |
5 |
5 |
\u0035 |
6 |
6 |
\u0036 |
7 |
7 |
\u0037 |
8 |
8 |
\u0038 |
9 |
9 |
\u0039 |
Small Letters: All the letters starting from “a” and ending at “z” has special HTML code and JavaScript Escape Sequence. In HTML, they start with a, and end at z, and in JavaScript they increase from “a” to “i” with \u0061 to \u0069 respectively and then from “j” to “o” representation changes to \u006A to \u006F. Then from “p” to “y”, the value increases from \u0070 to \u0079. Finally, for z, we have \u007A.
Char |
HTML Code |
JS Escape Sequence |
a |
a |
\u0061 |
b |
b |
\u0062 |
c |
c |
\u0063 |
d |
d |
\u0064 |
e |
e |
\u0065 |
f |
f |
\u0066 |
g |
g |
\u0067 |
h |
h |
\u0068 |
i |
i |
\u0069 |
j |
j |
\u006A |
k |
k |
\u006B |
l |
l |
\u006C |
m |
m |
\u006D |
n |
n |
\u006E |
o |
o |
\u006F |
p |
p |
\u0070 |
q |
q |
\u0071 |
r |
r |
\u0072 |
s |
s |
\u0073 |
t |
t |
\u0074 |
u |
u |
\u0075 |
v |
v |
\u0076 |
w |
w |
\u0077 |
x |
x |
\u0078 |
y |
y |
\u0079 |
z |
z |
\u007A |
Math Symbols
° |
degree |
° |
° |
∞ |
infinity |
∞ |
∞ |
‰ |
per-mille |
‰ |
‰ |
⋅ |
multiplication dot |
⋅ |
⋅ |
± |
plus-minus |
± |
± |
† |
hermitian |
† |
† |
— |
– |
— |
— |
¬ |
– |
¬ |
¬ |
µ |
Micro (mu) |
µ |
µ |
⊥ |
falsum |
⊥ |
⊥ |
∥ |
parallel |
∥ |
∥ |
Share your thoughts in the comments
Please Login to comment...