通常情况下,HTML会自动截去多余的空格。不管你加多少空格,都被看做一个空格。比如你在两个字之间加了10个空格,HTML会截去9个空格,只保留一个。为了在网页中增加空格,你可以使用 表示空格。
最常用的字符实体(Character Entities)
显示结果 说明 Entity Name Entity Number
 显示一个空格    
< 小于 &lt; <
> 大于 &gt; >
& &符号 &amp; &
" 双引号 &quot; "
其他常用的字符实体(Character Entities)
显示结果 说明 Entity Name Entity Number
? 版权 &copy; ©
? 注册商标 &reg; ®
× 乘号 &times; ×
÷ 除号 &divide; ÷
 
ISO Latin-1字符集:
字符 十进制字符编号 实体名字 说明
--- --- 制表符Horizontal tab
--- --- 换行Line feed
--- --- 回车Carriage Return
  --- Space
! ! --- 惊叹号Exclamation mark
" " &quot; 双引号Quotation mark
# # --- 数字标志Number sign
$ $ --- 美元标志Dollar sign
% % --- 百分号Percent sign
& & &amp; 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
< < &lt; 小于号Less than
= = --- 等于符号Equals sign
> > &gt; 大于号Greater than
? ? --- 问号Question mark
@ @ --- Commercial at
A A --- 大写A Capital A
B B --- 大写B Capital B
C C --- 大写C Capital C
D D --- 大写D Capital D
E E --- 大写E Capital E
F F --- 大写F Capital F
G G --- 大写G Capital G
H H --- 大写H Capital H
I I --- 大写J Capital I
J J --- 大写K Capital J
K K --- 大写L Capital K
L L --- 大写K Capital L
M M --- 大写M Capital M
N N --- 大写N Capital N
O O --- 大写O Capital O
P P --- 大写P Capital P
Q Q --- 大写Q Capital Q
R R --- 大写R Capital R
S S --- 大写S Capital S
T T --- 大写T Capital T
U U --- 大写U Capital U
V V --- 大写V Capital V
W W --- 大写W Capital W
X X --- 大写X Capital X
Y Y --- 大写Y Capital Y
Z Z --- 大写Z Capital Z
[ [ --- 中括号左边部分Left square bracket
\ \ --- 反斜杠Reverse solidus (backslash)
] ] --- 中括号右边部分Right square bracket
^ ^ --- Caret
_ _ --- 下划线Horizontal bar (underscore)
` ` --- 尖重音符Acute accent
a a --- 小写a Small a
b b --- 小写b Small b
c c --- 小写c Small c
d d --- 小写d Small d
e e --- 小写e Small e
f f --- 小写f Small f
g g --- 小写g Small g
h h --- 小写h Small h
i i --- 小写i Small i
j j --- 小写j Small j
k k --- 小写k Small k
l l --- 小写l Small l
m m --- 小写m Small m
n n --- 小写n Small n
o o --- 小写o Small o
p p --- 小写p Small p
q q --- 小写q Small q
r r --- 小写r Small r
s s --- 小写s Small s
t t --- 小写t Small t
u u --- 小写u Small u
v v --- 小写v Small v
w w --- 小写w Small w
x x --- 小写x Small x
y y --- 小写y Small y
z z --- 小写z Small z
{ { --- 大括号左边部分Left curly brace
| | --- 竖线Vertical bar
} } --- 大括号右边部分Right curly brace
~ ~ --- Tilde
---  --- 未使用Unused
    &nbsp; 空格Nonbreaking space
? ¡ &iexcl; Inverted exclamation
¢ ¢ &cent; 货币分标志Cent sign
£ £ &pound; 英镑标志Pound sterling
¤ ¤ &curren; 通用货币标志General currency sign
¥ ¥ &yen; 日元标志Yen sign
| ¦ &brvbar; or &brkbar; 断竖线Broken vertical bar
§ § &sect; 分节号Section sign
¨ ¨ &uml; or &die; 变音符号Umlaut
? © &copy; 版权标志Copyright
a ª &ordf; Feminine ordinal
? « &laquo; Left angle quote, guillemet left
? ¬ &not Not sign
¬ ­ &shy; Soft hyphen
? ® &reg; 注册商标标志Registered trademark
ˉ ¯ &macr; or &hibar; 长音符号Macron accent
° ° &deg; 度数标志Degree sign
± ± &plusmn; 加或减Plus or minus
2 ² &sup2; 上标2 Superscrīpt two
3 ³ &sup3; 上标3 Superscrīpt three
′ ´ &acute; 尖重音符Acute accent
μ µ &micro; Micro sign
? ¶ &para; Paragraph sign
• · &middot; Middle dot
? ¸ &cedil; Cedilla
1 ¹ &sup1; 上标1 Superscrīpt one
o º &ordm; Masculine ordinal
? » &raquo; Right angle quote, guillemet right
? ¼ &frac14; 四分之一Fraction one-fourth
? ½ &frac12; 二分之一Fraction one-half
? ¾ &frac34; 四分之三Fraction three-fourths
? ¿ &iquest; Inverted question mark
à À &Agrave; Capital A, grave accent
á Á &Aacute; Capital A, acute accent
? Â &Acirc; Capital A, circumflex
? Ã &Atilde; Capital A, tilde
? Ä &Auml; Capital A, di?esis / umlaut
? Å &Aring; Capital A, ring
? Æ &AElig; Capital AE ligature
? Ç &Ccedil; Capital C, cedilla
è È &Egrave; Capital E, grave accent
é É &Eacute; Capital E, acute accent
ê Ê &Ecirc; Capital E, circumflex
? Ë &Euml; Capital E, di?esis / umlaut
ì Ì &Igrave; Capital I, grave accent
í Í &Iacute; Capital I, acute accent
? Î &Icirc; Capital I, circumflex
? Ï &Iuml; Capital I, di?esis / umlaut
D Ð &ETH; Capital Eth, Icelandic
? Ñ &Ntilde; Capital N, tilde
ò Ò &Ograve; Capital O, grave accent
ó Ó &Oacute; Capital O, acute accent
? Ô &Ocirc; Capital O, circumflex
? Õ &Otilde; Capital O, tilde
? Ö &Ouml; Capital O, di?esis / umlaut
× × &times; 乘号Multiply sign
? Ø &Oslash; Capital O, slash
ù Ù &Ugrave; Capital U, grave accent
ú Ú &Uacute; Capital U, acute accent
? Û &Ucirc; Capital U, circumflex
ü Ü &Uuml; Capital U, di?esis / umlaut
Y Ý &Yacute; Capital Y, acute accent
T Þ &THORN; Capital Thorn, Icelandic
? ß &szlig; Small sharp s, German sz
à à &agrave; Small a, grave accent
á á &aacute; Small a, acute accent
a â &acirc; Small a, circumflex
? ã &atilde; Small a, tilde
? ä &auml; Small a, di?esis / umlaut
? å &aring; Small a, ring
? æ &aelig; Small ae ligature
? ç &ccedil; Small c, cedilla
è è &egrave; Small e, grave accent
é é &eacute; Small e, acute accent
ê ê &ecirc; Small e, circumflex
? ë &euml; Small e, di?esis / umlaut
ì ì &igrave; Small i, grave accent
í í &iacute; Small i, acute accent
? î &icirc; Small i, circumflex
? ï &iuml; Small i, di?esis / umlaut
e ð &eth; Small eth, Icelandic
? ñ &ntilde; Small n, tilde
ò ò &ograve; Small o, grave accent
ó ó &oacute; Small o, acute accent
? ô &ocirc; Small o, circumflex
? õ &otilde; Small o, tilde
? ö &ouml; Small o, di?esis / umlaut
÷ ÷ &divide; 除号Division sign
? ø &oslash; Small o, slash
ù ù &ugrave; Small u, grave accent
ú ú &uacute; Small u, acute accent
? û &ucirc; Small u, circumflex
ü ü &uuml; Small u, di?esis / umlaut
y ý &yacute; Small y, acute accent
t þ &thorn; Small thorn, Icelandic
? ÿ &yuml; Small y, umlaut
 
symbols, mathematical symbols, and Greek letters
? &fnof; Α &Alpha; Β &Beta; Γ &Gamma; Δ &Delta;
Ε &Epsilon; Ζ &Zeta; Η &Eta; Θ &Theta; Ι &Iota;
Κ &Kappa; Λ &Lambda; Μ &Mu; Ν &Nu; Ξ &Xi;
Ο &Omicron; Π &Pi; Ρ &Rho; Σ &Sigma; Τ &Tau;
Υ &Upsilon; Φ &Phi; Χ &Chi; Ψ &Psi; Ω &Omega;
α &alpha; β &beta; γ &gamma; δ &delta; ε &epsilon;
ζ &zeta; η &eta; θ &theta; ι &iota; κ &kappa;
λ &lambda; μ &mu; ν &nu; ξ &xi; ο &omicron;
π &pi; ρ &rho; ? &sigmaf; σ &sigma; τ &tau;
υ &upsilon; φ &phi; χ &chi; ψ &psi; ω &omega;
? &thetasym; ? &upsih; ? &piv; ? &bull; … &hellip;
′ &prime; ″ &Prime;  ̄ &oline; ? &frasl; ? &weierp;
? &image; ? &real; ? &trade; ? &alefsym; ← &larr;
↑ &uarr; → &rarr; ↓ &darr; ? &harr; ? &crarr;
? &lArr; ? &uArr; ? &rArr; ? &dArr; ? &hArr;
? &forall; ? &part; ? &exist; ? &empty; ? &nabla;
∈ &isin; ? &notin; ? &ni; ∏ &prod; ∑ &sum;
? &minus; ? &lowast; √ &radic; ∝ &prop; ∞ &infin;
∠ &ang; ∧ &and; ∨ &or; ∩ &cap; ∪ &cup;
∫ &int; ∴ &there4; ~ &sim; ? &cong; ≈ &asymp;
≠ &ne; ≡ &equiv; ≤ &le; ≥ &ge; ? &sub;
? &sup; ? &nsub; ? &sube; ? &supe; ⊕ &oplus;
? &otimes; ⊥ &perp; ? &sdot; ? &lceil; ? &rceil;
? &lfloor; ? &rfloor; ? &lang; ? &rang; ? &loz;
? &spades; ? &clubs; ? &hearts; ? &diams; 
markup-significant and internationalization characters
" &quot; & &amp; < &lt; > &gt; ? &OElig;
? &oelig; ? &Scaron; ? &scaron; ? &Yuml; ? &circ;
? &tilde; ? &ensp; ? &emsp; ? &thinsp; ? &zwnj;
? &zwj; ? &lrm; ? &rlm; - &ndash; - &mdash;
' &lsquo; ' &rsquo; ? &sbquo; " &ldquo; " &rdquo;
? &bdquo; ? &dagger; ? &Dagger; ‰ &permil; ? &lsaquo;
? &rsaquo; ?/STRONG> &euro;

html符号转换的更多相关文章

  1. system verilog中的类型转换(type casting)、位宽转换(size casting)和符号转换(sign casting)

    类型转换 verilog中,任何类型的任何数值都用来给任何类型赋值.verilog使用赋值语句自动将一种类型的数值转换为另一种类型. 例如,当一个wire类型赋值给一个reg类型的变量时,wire类型 ...

  2. .NET中将中文符号转换成英文符号

    public static string ConvertToEn(string text) { const string s1 = ".:,?!.“”‘’"; const stri ...

  3. javascript 将中文符号转换成英文符号

      javascript 将中文符号转换成英文符号 CreateTime--2018年3月30日09:01:29 Author:Marydon /** * 将中文符号转换成英文符号 */ functi ...

  4. java知识 特殊符号转换

    ■情况 想把代码中的出现  “  ’等特殊符号时,在他们的前面,转换时自动加 \    最后转换成json 决定用ObjectMapper这个类,先准备一个Map,之后,map作为一个参数,调用Obj ...

  5. C#中2、8、16进制 有符号转换10进制正负数

    曾经让我苦想的其他进制转有符号整型问题,结果自己想到方法解决后才发现原来如此简单. 1.Int16(2个byte长度 ) : 方法 :Convert.ToInt16(进制编码,进制) a.16进制转1 ...

  6. url中特殊符号转换

    特殊符号 url中显示 空格 %20 & %26

  7. js 符号转换 html代码

    S转换HTML转义符 //去掉html标签 function removeHtmlTab(tab) { return tab.replace(/<[^<>]+?>/g,''); ...

  8. 程序员之---C语言细节20(符号和有符号之间转换、两数相加溢出后数值计算)

    主要内容:无符号和有符号之间转换.两数相加溢出后数值计算 #include <stdio.h> /* 这个函数存在潜在漏洞 */ float sum_elements(float a[], ...

  9. Arcgis Engine 添加一个Symbol符号样式步骤

    public static void DrawPictureMarkerSymbol(IGlobe globe, String layerName) { //添加一个图层 ESRI.ArcGIS.Ca ...

随机推荐

  1. 2018-2019-2 《网络对抗技术》Exp4 恶意代码分析 20165222李勖

    1.系统运行监控 (1)使用如计划任务,每隔一分钟记录自己的电脑有哪些程序在联网,连接的外部IP是哪里.运行一段时间并分析该文件,综述一下分析结果.目标就是找出所有连网的程序,连了哪里,大约干了什么( ...

  2. [BZOJ3162]独钓寒江雪

    bzoj description 你要给一个树上的每个点黑白染色,要求白点不相邻.求本质不同的染色方案数. 两种染色方案本质相同当且仅当对树重新标号后对应节点的颜色相同. \(n\le 5\times ...

  3. CollabNet Subversion Edge 安装笔记(1):基本安装设定篇

    转载于:http://blog.miniasp.com/post/2011/12/30/CollabNet-Subversion-Edge-Installation-Notes-Part-1-Basi ...

  4. hadoop之 YARN配置参数剖析—RM与NM相关参数

    参数均需要在yarn-site.xml中配置: 1. ResourceManager相关配置参数 (1) yarn.resourcemanager.address 参数解释:ResourceManag ...

  5. Django models中关于blank与null

    建立一个简易Model class Person(models.Model): GENDER_CHOICES=( (1,'Male'), (2,'Female'), ) name=models.Cha ...

  6. Spring AOP 实现读写分离

    原文地址:Spring AOP 实现读写分离 博客地址:http://www.extlight.com 一.前言 上一篇<MySQL 实现主从复制> 文章中介绍了 MySQL 主从复制的搭 ...

  7. 设置JAVA HOME环境变量的秕处理

    echo "放在JDK目录下,win xp需要下载SETX.EXE" setx /m Java_Home "%cd%" setx /m ClassPath &q ...

  8. C#使用OpcNetApi.dll和OpcNetApi.Com.dll操作OPC

    本人学习了一下.Net,恰好,51自学网,又要用这个.而网上很多VC6,VB6,VB .Net的但,很少C#的.现在研究一下,给出例子: 测试平台,是VS2008,KEPServer,OpcNetAp ...

  9. iis 更改asp.net 版本设置

    参考来源: https://github.com/neo2018/ZYFC/blob/2e20009097c1e837a6e667a3dffd4224e28f4411/MderFc/Classes/I ...

  10. 简化Redis数据访问代码RedisTemplate

    ---恢复内容开始--- Redis数据结构简介: Redis可以存储键与5中数据结构类型之间的映射,这5中数据结构类型分别是;String(字符串),List(列表),Set(集合),Hash(散列 ...