html转义字符对照表

常用的html转义字符

字符描述实体名称实体编号
"quotation mark(双引号“半角”)""
'apostrophe (单引号‘半角’)''
&ampersand(&连接号)&&
<less-than(小于号)&lt;&#60;
>greater-than(大于号)&gt;&#62;
 non-breaking space(空格)&nbsp;&#160;
«angle quotation mark (left)&laquo;&#171;
»angle quotation mark (right)&raquo;&#187;
×multiplication(乘号)&times;&#215;

 

字符描述实体名称实体编号
¡inverted exclamation mark&iexcl;&#161;
¢cent&cent;&#162;
£pound&pound;&#163;
¤currency&curren;&#164;
¥yen&yen;&#165;
¦broken vertical bar&brvbar;&#166;
§section&sect;&#167;
¨spacing diaeresis&uml;&#168;
©copyright&copy;&#169;
ªfeminine ordinal indicator&ordf;&#170;
«angle quotation mark (left)&laquo;&#171;
¬negation&not;&#172;
 soft hyphen&shy;&#173;
®registered trademark&reg;&#174;
¯spacing macron&macr;&#175;
°degree&deg;&#176;
±plus-or-minus &plusmn;&#177;
²superscript 2&sup2;&#178;
³superscript 3&sup3;&#179;
´spacing acute&acute;&#180;
µmicro&micro;&#181;
paragraph&para;&#182;
·middle dot&middot;&#183;
¸spacing cedilla&cedil;&#184;
¹superscript 1&sup1;&#185;
ºmasculine ordinal indicator&ordm;&#186;
»angle quotation mark (right)&raquo;&#187;
¼fraction 1/4&frac14;&#188;
½fraction 1/2&frac12;&#189;
¾fraction 3/4&frac34;&#190;
¿inverted question mark&iquest;&#191;
×multiplication&times;&#215;
÷division&divide;&#247;

 

HTML 支持的数学符号

字符描述转义字符实体编号
for all&forall;&#8704;
part&part;&#8706;
exists&exists;&#8707;
empty&empty;&#8709;
nabla&nabla;&#8711;
isin&isin;&#8712;
notin&notin;&#8713;
ni&ni;&#8715;
prod&prod;&#8719;
sum&sum;&#8721;
minus&minus;&#8722;
lowast&lowast;&#8727;
square root&radic;&#8730;
proportional to&prop;&#8733;
infinity&infin;&#8734;
angle&ang;&#8736;
and&and;&#8743;
or&or;&#8744;
cap&cap;&#8745;
cup&cup;&#8746;
integral&int;&#8747;
therefore&there4;&#8756;
simular to&sim;&#8764;
approximately equal&cong;&#8773;
almost equal&asymp;&#8776;
not equal&ne;&#8800;
equivalent&equiv;&#8801;
less or equal&le;&#8804;
greater or equal&ge;&#8805;
subset of&sub;&#8834;
superset of&sup;&#8835;
not subset of&nsub;&#8836;
subset or equal&sube;&#8838;
superset or equal&supe;&#8839;
circled plus&oplus;&#8853;
cirled times&otimes;&#8855;
perpendicular&perp;&#8869;
dot operator&sdot;&#8901;

HTML 支持的其他实体

字符描述实体名称实体编号
Œcapital ligature OE&OElig;&#338;
œsmall ligature oe&oelig;&#339;
Šcapital S with caron&Scaron;&#352;
šsmall S with caron&scaron;&#353;
Ÿcapital Y with diaeres&Yuml;&#376;
ƒf with hook&fnof;&#402;
ˆmodifier letter circumflex accent&circ;&#710;
˜small tilde&tilde;&#732;
en dash&ndash;&#8211;
em dash&mdash;&#8212;
left single quotation mark&lsquo;&#8216;
right single quotation mark&rsquo;&#8217;
single low-9 quotation mark&sbquo;&#8218;
left double quotation mark&ldquo;&#8220;
right double quotation mark&rdquo;&#8221;
double low-9 quotation mark&bdquo;&#8222;
dagger&dagger;&#8224;
double dagger&Dagger;&#8225;
bullet&bull;&#8226;
horizontal ellipsis&hellip;&#8230;
per mille &permil;&#8240;
minutes&prime;&#8242;
seconds&Prime;&#8243;
single left angle quotation&lsaquo;&#8249;
single right angle quotation&rsaquo;&#8250;
overline&oline;&#8254;
euro&euro;&#8364;
trademark&trade;&#8482;
left arrow&larr;&#8592;
up arrow&uarr;&#8593;
right arrow&rarr;&#8594;
down arrow&darr;&#8595;
left right arrow&harr;&#8596;
carriage return arrow&crarr;&#8629;
left ceiling&lceil;&#8968;
right ceiling&rceil;&#8969;
left floor&lfloor;&#8970;
right floor&rfloor;&#8971;
lozenge&loz;&#9674;
spade&spades;&#9824;
club&clubs;&#9827;
heart&hearts;&#9829;
diamond&diams;&#9830;

转载于:https://www.cnblogs.com/superGG1990/p/6903970.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值