Display special symbols in HTML (with special character correspondence table)

Display special symbols in HTML (with special character correspondence table)

Problem Reproduction

When using HTML for editing, special symbols will often display errors, and in extreme cases may even cause the web page to crash. As shown in the following code:

<table>
<tr>
<td>
Chinese
</tr>
</table>

On the web page it is displayed as:

這里寫圖片描述

Here, the two underscores are automatically converted into italic identifiers, resulting in incorrect output results.

Workaround

It is recommended to use character encoding to replace the original special characters, such as changing the above code to:

<table>
<tr>
<td>
Chinese``` |```&#95;``` | country``` |```&#95;``` | people</td>
</tr>
</table>

The output becomes:

這里寫圖片描述

Special character mapping table

The following is a table of special characters

character Decimal character number Entity Name
! &#33; Exclamation mark
&#34; &quot; Quotation mark
# &#35; Number sign
$ &#36; Dollar signDollar sign
% &#37; Percent sign
& &#38; &amp; Ampersand
' &#39; Apostrophe
( &#40; Left parenthesis
) &#41; Right parenthesis
* &#42; Asterisk
+ &#43; Plus sign
, &#44; Comma
&#45; Hyphen
. &#46; Period (fullstop)
/ &#47; Solidus (slash)
0 &#48; Digit 0
1 &#49; Digit 1
2 &#50; Digit 2
3 &#51; Digit 3
4 &#52; Digit 4
5 &#53; Digit 5
6 &#54; Digit 6
7 &#55; Digit 7
8 &#56; Digit 8
9 &#57; Digit 9
: &#58; Colon
; &#59; Semicolon
< &#60; &lt; Less than
= &#61; Equals sign
> &#62; &gt; Greater than
? &#63; Question mark
@ &#64; Commercial at
A &#65; Capital A
B &#66; Capital B
C &#67; Capital C
D &#68; Capital D
E &#69; Capital E
F &#70; Capital F
G &#71; Capital G
H &#72; Capital H
I &#73; Capital J Capital I
J &#74; Capital J
K &#75; Capital L Capital K
L &#76; Capital L
M &#77; Capital M
N &#78; Capital N
O &#79; Capital O
P &#80; Capital P
Q &#81; Capital Q
R &#82; Capital R
S &#83; Capital S
T &#84; Capital T
U &#85; Capital U
V &#86; Capital V
W &#87; Capital W
X &#88; Capital X
Y &#89; Capital Y
Z &#90; Capital Z
[ &#91; Left square bracket
\ &#92; Reverse solidus (backslash)
] &#93; Right square bracket
^ &#94; Caret
_ &#95; Horizontal bar (underscore)
` &#96; Acute accent
a &#97; Small a
b &#98; Small b
c &#99; Small c
d &#100; Small d
e &#101; Small e
f &#102; Small f
g &#103; Small g
h &#104; Small h
i &#105; Small i
j &#106; Small j
k &#107; Small k
l &#108; Small l
m &#109; Small m
n &#110; Small n
o &#111; Small o
p &#112; Small p
q &#113; Small q
r &#114; Small r
s &#115; Small s
t &#116; Small t
u &#117; Small u
v &#118; Small v
w &#119; Small w
x &#120; Small x
y &#121; Small y
z &#122; Small z
{ &#123; Left curly brace
| &#124; Vertical bar
} &#125; Right curly brace
~ &#126; Tilde
&#127; Unused
&#160; &nbsp; Nonbreaking space
¡ &#161; &iexcl; Inverted exclamation
¢ &#162; &cent; Cent sign
£ &#163; &pound; Pound sterling
¤ &#164; &curren; General currency sign
¥ &#165; &yen; Japanese Yen
¦ &#166; &brvbar; or &brkbar;“`
§ &#167; &sect; Section sign
¨ &#168; &uml; or ¨“`
© &#169; &copy; Copyright
ª &#170; &ordf; Feminine ordinal
« &#171; &laquo; Left angle quote, guillemet left
¬ "`¬ ¬ Not sign
“““ &#173; &shy; Soft hyphen
® &#174; &reg; Registered trademark
¯ &#175; &macr; or &hibar;“`
° &#176; &deg; Degree sign
± &#177; &plusmn; Plus or minus
² &#178; &sup2; Superscript two
³ &#179; &sup3; Superscript three
´ &#180; &acute; Acute accent
µ &#181; &micro; Micro sign
&#182; &para; Paragraph sign
· &#183; &middot; Middle dot
¸ &#184; &cedil; Cedilla
¹ &#185; &sup1; Superscript one
º &#186; &ordm; Masculine ordinal
» &#187; &raquo; Right angle quote, guillemet right
¼ &#188; &frac14; Fraction one-fourth
½ &#189; &frac12; Fraction one-half
¾ &#190; &frac34; Fraction three-fourths
¿ &#191; &iquest; Inverted question mark
À &#192; &Agrave; Capital A, grave accent
Á &#193; &Aacute; Capital A, acute accent
 &#194; &Acirc; Capital A, circumflex
à &#195; &Atilde; Capital A, tilde
Ä &#196; &Auml; Capital A, di?esis / umlaut
Å &#197; &Aring; Capital A, ring
Æ &#198; &AElig; Capital AE ligature
Ç &#199; &Ccedil; Capital C, cedilla
È &#200; &Egrave; Capital E, grave accent
É &#201; &Eacute; Capital E, acute accent
Ê &#202; &Ecirc; Capital E, circumflex
Ë &#203; &Euml; Capital E, di?esis / umlaut
Ì &#204; &Igrave; Capital I, grave accent
Í &#205; &Iacute; Capital I, acute accent
Î &#206; &Icirc; Capital I, circumflex
Ï &#207; &Iuml; Capital I, di?esis / umlaut
Ð &#208; &ETH; Capital Eth, Icelandic
Ñ &#209; &Ntilde; Capital N, tilde
Ò &#210; &Ograve; Capital O, grave accent
Ó &#211; &Oacute; Capital O, acute accent
Ô &#212; &Ocirc; Capital O, circumflex
Õ &#213; &Otilde; Capital O, tilde
Ö &#214; &Ouml; Capital O, di?esis / umlaut
× &#215; &times; Multiply sign
Ø &#216; &Oslash; Capital O, slash
Ù &#217; &Ugrave; Capital U, grave accent
Ú &#218; &Uacute; Capital U, acute accent
Û &#219; &Ucirc; Capital U, circumflex
Ü &#220; &Uuml; Capital U, di?esis / umlaut
Ý &#221; &Yacute; Capital Y, acute accent
Þ &#222; &THORN; Capital Thorn, Iceland
ß &#223; &szlig; Small sharp s, German sz
à &#224; &agrave; Small a, grave accent
á &#225; &aacute; Small a, acute accent
â &#226; &acirc; Small a, circumflex
ã &#227; &atilde; Small a, tilde
ä &#228; &auml; Small a, di?esis / umlaut
å &#229; &aring; Small a, ring
æ &#230; &aelig; Small ae ligature
ç &#231; &ccedil; Small c, cedilla
è &#232; &egrave; Small e, grave accent
é &#233; &eacute; Small e, acute accent
ê &#234; &ecirc; Small e, circumflex
ë &#235; &euml; Small e, di?esis / umlaut
ì &#236; &igrave; Small i, grave accent
í &#237; &iacute; Small i, acute accent
î &#238; &icirc; Small i, circumflex
ï &#239; &iuml; Small i, di?esis / umlaut
ð &#240; &eth; Small eth, Icelandic
ñ &#241; &ntilde; Small n, tilde
ò &#242; &ograve; Small o, grave accent
ó &#243; &oacute; Small o, acute accent
ô &#244; &ocirc; Small o, circumflex
õ &#245; &otilde; Small o, tilde
ö &#246; &ouml; Small o, di?esis / umlaut
÷ &#247; &divide; Division sign
ø &#248; &oslash; Small o, slash
ù &#249; &ugrave; Small u, grave accent
ú &#250; &uacute; Small u, acute accent
û &#251; &ucirc; Small u, circumflex
ü &#252; &uuml; Small u, di?esis / umlaut
ý &#253; &yacute; Small y, acute accent
þ &#254; &thorn; Small thorn, Icelandic
ÿ &#255; &yuml; Small y, umlaut

This is the end of this article about displaying special symbols in HTML (with a special character correspondence table). For more relevant content about displaying special symbols in HTML, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  Problems with creating placeholders for HTML selection boxes

>>:  HTML+CSS to achieve surround reflection loading effect

Recommend

Application examples of WeChat applet virtual list

Table of contents Preface What is a virtual list?...

MySQL uses the Partition function to implement horizontal partitioning strategy

Table of contents 1 Review 2 Five strategies for ...

Professional and non-professional web design

First of all, the formation of web page style main...

Tips for List Building for Website Maintenance Pages

And, many times, maintenance requires your website...

MySQL recursion problem

MySQL itself does not support recursive syntax, b...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

Implementation of importing and exporting vue-element-admin projects

vue-element-admin import component encapsulation ...

JavaScript function encapsulates random color verification code (complete code)

An n-digit verification code consisting of number...

Front-end JavaScript housekeeper package.json

Table of contents 1. Required attributes 1. name ...

Detailed explanation of how to use Teleport, a built-in component of Vue3

Table of contents 1. Teleport usage 2. Complete t...

Vue data responsiveness summary

Before talking about data responsiveness, we need...

Is it easy to encapsulate a pop-up component using Vue3?

Table of contents Summary put first: 🌲🌲 Preface: ...

WeChat applet development chapter: pitfall record

Recently, I participated in the development of th...