search
HomeWeb Front-endHTML TutorialList of HTML special symbols

List of HTML special symbols

Dec 22, 2016 pm 02:43 PM

有些字符在HTML里有特别的含义,比如小于号

这就要说到HTML字符实体(HTML Character Entities)了。

组成

一个字符实体(Character Entity)分成三部分:第一部分是一个&符号,英文叫ampersand;第二部分是实体(Entity)名字或者是#加上实体(Entity)编号;第三部分是一个分号。

比如,要显示小于号,就可以写<或者<。

用实体(Entity)名字的好处是比较好理解,一看lt,大概就猜出是less than的意思,但是其劣势在于并不是所有的浏览器都支持最新的Entity名字。而实体(Entity)编号,各种浏览器都能处理。

注意:Entity是区分大小写的。

如何显示空格

通常情况下,HTML会自动截去多余的空格。不管你加多少空格,都被看做一个空格。比如你在两个字之间加了10个空格,HTML会截去9个空格,只保留一个。为了在网页中增加空格,你可以使用 表示空格。

最常用的字符实体(Character Entities)

显示结果 说明 Entity Name Entity Number

显示一个空格  
< 小于 < <
> 大于 > >
& &符号 & &
" 双引号 " "

其他常用的字符实体(Character Entities)

显示结果 说明 Entity Name Entity Number
版权 © ©
注册商标 ® ®
× 乘号 × ×
÷ 除号 ÷ ÷

ISO Latin-1字符集:

Character
                                                                                                                                                         . --- Not used Unused
---                                                                                                            06 ; ; Tab Horizontal tab
---                                                                                                                                                                                                                                                                                                  . ;                                          Unused
---                                                                                                   #20; --- Unused
--- Unused
--- Unused
--- Unused Unused
--- Unused
- --                                                                                                                                                   . -- - Unused
--- Unused
--- Unused
--- Unused
--- Unused
--- Unused
--- --                                                                                                                                                                                                                                 ."       "       "      双引号Quotation mark
#       #       ---     数字标志Number sign
$       $       ---     美元标志Dollar sign
%       %       ---     百分号Percent sign
&   &       &       Ampersand
"       '       ---     单引号Apostrophe
(       (       ---     小括号左边部分Left parenthesis
)       )       ---     小括号右边部分Right parenthesis
*       *       ---     星号Asterisk
+       +       ---     加号Plus sign
,       ,       ---     逗号Comma
-       -       ---     连字号Hyphen
.       .       ---     句号Period (fullstop)
/       /       ---     斜杠Solidus (slash)
0       0       ---     数字0 Digit 0
1       1       ---     数字1 Digit 1
2       2       ---     数字2 Digit 2
3       3       ---     数字3 Digit 3
4       4       ---     数字4 Digit 4
5       5       ---     数字5 Digit 5
6       6       ---     数字6 Digit 6
7       7       ---     数字7 Digit 7
8       8       ---     数字8 Digit 8
9       9       ---     数字9 Digit 9
:       :       ---     冒号Colon
;       ;       ---     分号Semicolon
?       ?       ---     问号Question mark
@       @       ---     Commercial at
A                                                                                                                               Capital                                      D                                                                                                              D
E                                                  with Capital E                                                                     G
H                                                                                                                                  H Capital H
I                                                                           Write L Capital K
L - Capital K Capital L
M Capital M Capital M
N Capital M Capital M
N Capital M -- Capital O Capital O
P --- Capital P Capital P
Q Capital Q Capital Q
R Capital R --- Capital S Capital S
T 84;                                         Capital T                                   W                                                                      X                                                  Capital [                                                Left square bracket
                                                                                                                                                                                                                                                 . - Caret
_ _ ;                                                                                                                                                                                                                                   but  `                                                                                                                                                                                                                                                          Small d mall f
g                                                                                Patrunction G Small gmh h --- lowercase H Small h
i i --- lowercase i small I
J j --Swharcrocament K Small K
L l --- lowercase l small l
m m --- lowercase m small m
n n --- lowercase n smoll n
o o ;                                                                                                              4;                                                                                                          #115;                                                                                                                                                             . v                                                                                                                                         . w                                                                                                      z                                                                                                                                                   z
{                                                                                                                                                                                   . The right part of the number Right curly brace
~                126;& #160; £ £ Pound sterling
¤ ¤   General currency sign
¥               ¥ § § Section number Section sign
¨                  ¨ ordinal
? Left? ¬ & NOT Not Sign
? ­ & Shy; Soft Hyphen
? ® & Reg; Symbol Macron Accent ° ° & deg; degree logo DEGREE SIGN
± ± & Plusmn; plus or minus Plus or Minus
2 ² & SUP2; Overnight 2 SuperScript Two
3 ³ UPERScript three
′                                                                                                                                                                                                                                                     · ¸ Cedilla
1 » Right angle quote, guillemet right
? Fraction one-fourth
?       ½      ½    二分之一Fraction one-half
?       ¾      ¾    四分之三Fraction three-fourths
?       ¿      ¿    Inverted question mark
à       À      À    Capital A, grave accent
á       Á      Á    Capital A, acute accent
?       Â      Â     Capital A, circumflex
?       Ã      Ã    Capital A, tilde
?       Ä      Ä      Capital A, di?esis / umlaut
?       Å      Å     Capital A, ring
?       Æ      Æ     Capital AE ligature
?       Ç      Ç    Capital C, cedilla
è       È      È    Capital E, grave accent
é       É      É    Capital E, acute accent
ê       Ê      Ê     Capital E, circumflex
?       Ë      Ë      Capital E, di?esis / umlaut
ì       Ì      Ì    Capital I, grave accent
í       Í      Í    Capital I, acute accent
?       Î      Î     Capital I, circumflex
?       Ï      Ï      Capital I, di?esis / umlaut
D       Ð      Ð       Capital Eth, Icelandic
?       Ñ      Ñ    Capital N, tilde
ò       Ò      Ò    Capital O, grave accent
ó       Ó      Ó    Capital O, acute accent
?       Ô      Ô     Capital O, circumflex
?       Õ      Õ    Capital O, tilde
?       Ö      Ö      Capital O, di?esis / umlaut
×       ×      ×     乘号Multiply sign
?       Ø      Ø    Capital O, slash
ù       Ù      Ù    Capital U, grave accent
ú       Ú      Ú    Capital U, acute accent
?       Û      Û     Capital U, circumflex
ü       Ü      Ü      Capital U, di?esis / umlaut
Y       Ý      Ý    Capital Y, acute accent
T       Þ      Þ     Capital Thorn, Icelandic
?       ß      ß     Small sharp s, German sz
à       à      à    Small a, grave accent
á       á      á    Small a, acute accent
a       â      â     Small a, circumflex
?       ã      ã    Small a, tilde
?       ä      ä      Small a, di?esis / umlaut
?       å      å     Small a, ring
?       æ      æ     Small ae ligature
?       ç      ç    Small c, cedilla
è       è      è    Small e, grave accent
é       é      é    Small e, acute accent
ê       ê      ê     Small e, circumflex
?       ë      ë      Small e, di?esis / umlaut
ì       ì      ì    Small i, grave accent
í       í      í    Small i, acute accent
?       î      î     Small i, circumflex
?       ï      ï      Small i, di?esis / umlaut
e       ð      ð       Small eth, Icelandic
?       ñ      ñ    Small n, tilde
ò       ò      ò    Small o, grave accent
ó       ó      ó    Small o, acute accent
?       ô      ô     Small o, circumflex
?       õ      õ    Small o, tilde
?       ö      ö      Small o, di?esis / umlaut
÷       ÷      ÷    除号Division sign
?       ø      ø    Small o, slash
ù       ù      ù    Small u, grave accent
ú       ú      ú    Small u, acute accent
?       û      û     Small u, circumflex
ü       ü      ü      Small u, di?esis / umlaut
y       ý      ý    Small y, acute accent
t       þ      þ     Small thorn, Icelandic
?       ÿ      ÿ      Small y, umlaut

symbols, mathematical symbols, and Greek letters

? ƒ Α Α Β Β Γ Γ Δ Δ
Ε Ε Ζ Ζ Η Η Θ Θ Ι Ι
Κ Κ Λ Λ Μ Μ Ν Ν Ξ Ξ
Ο Ο Π Π Ρ Ρ Σ Σ Τ Τ
Υ Υ Φ Φ Χ Χ Ψ Ψ Ω Ω
α α β β γ γ δ δ ε ε
ζ ζ η η θ θ ι ι κ κ
λ λ μ μ ν ν ξ ξ ο ο
π π ρ ρ ? ς σ σ τ τ
υ υ φ φ χ χ ψ ψ ω ω
? ϑ ? ϒ ? ϖ ? • … …
′ ′ ″ ″  ̄ ‾ ? ⁄ ? ℘
? ℑ ? ℜ ? ™ ? ℵ ← ←
↑ ↑ → → ↓ ↓ ? ↔ ? ↵
? ⇐ ? ⇑ ? ⇒ ? ⇓ ? ⇔
? ∀ ? ∂ ? ∃ ? ∅ ? ∇
∈ ∈ ? ∉ ? ∋ ∏ ∏ ∑ ∑
? − ? ∗ √ √ ∝ ∝ ∞ ∞
∠ ∠ ∧ ∧ ∨ ∨ ∩ ∩ ∪ ∪
∫ ∫ ∴ ∴ ~ ∼ ? ≅ ≈ ≈
≠ ≠ ≡ ≡ ≤ ≤ ≥ ≥ ? ⊂
? ⊃ ? ⊄ ? ⊆ ? ⊇ ? ⊕
? ⊗ ⊥ ⊥ ? ⋅ ? ⌈ ? ⌉
? ⌊ ? ⌋ ? 〈 ? 〉 ? ◊
? ♠ ? ♣ ? ♥ ? ♦

markup-significant and internationalization characters

“ " & & ? œ ? Š ? š ? Ÿ ? ˆ
? ˜ ?   ?   ?   ? ‌
? ‍ ? ‎ ? ‏ ? – — —
‘ ‘ ’ ’ ? ‚ “ “ ” ”
? „ ? † ? ‡ ‰ ‰ ? ‹
? › ?/STRONG> €

 以上就是HTML特殊符号列表的内容,更多相关内容请关注PHP中文网(www.php.cn)!


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the difference between an HTML tag and an HTML attribute?What is the difference between an HTML tag and an HTML attribute?May 14, 2025 am 12:01 AM

HTMLtagsdefinethestructureofawebpage,whileattributesaddfunctionalityanddetails.1)Tagslike,,andoutlinethecontent'splacement.2)Attributessuchassrc,class,andstyleenhancetagsbyspecifyingimagesources,styling,andmore,improvingfunctionalityandappearance.

The Future of HTML: Evolution and TrendsThe Future of HTML: Evolution and TrendsMay 13, 2025 am 12:01 AM

The future of HTML will develop in a more semantic, functional and modular direction. 1) Semanticization will make the tag describe the content more clearly, improving SEO and barrier-free access. 2) Functionalization will introduce new elements and attributes to meet user needs. 3) Modularity will support component development and improve code reusability.

Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools