欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

html特殊符号示例 html特殊字符编码对照表

程序员文章站 2023-11-17 15:04:46
本文提供了一个html特殊符号示例,最后给出了html特殊字符编码对照表,大家可以看一下,在做HTML编码的时候总会用到的... 14-01-14...

复制代码
代码如下:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "<a href="http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>特殊字符</title>
</head>
<!--
空格:&nbsp;
版权号:&copy;
注册商标:&reg;
":quot;
&:&amp;
<:&lt;
>:&gt;

参阅手册中的html实体
-->
<body>
<p>
网站设计 | “网站推广” | &lt;广告设计&gt; | 三维影视 | 软件开发 | 网络工程 | 联系我们
</p>
<p>
网站设计 &nbsp;&nbsp;|&nbsp;&nbsp; 网站推广 &nbsp;&nbsp;|&nbsp;&nbsp; 广告设计 &nbsp;&nbsp;| &nbsp;&nbsp; 三维影视 &nbsp;&nbsp;|&nbsp;&nbsp; 软件开发 &nbsp;&nbsp;|&nbsp;&nbsp; 网络工程 &nbsp;&nbsp;|&nbsp;&nbsp; 联系我们
</p>

<hr/>
baidu&nbsp;&copy;<u>2005</u>
</body>
</html>


html特殊字符编码对照表

特殊符号 命名实体 十进制编码 特殊符号 命名实体 十进制编码 特殊符号 命名实体 十进制编码
α &alpha; &#913; β &beta; &#914; γ &gamma; &#915;
δ &delta; &#916; ε &epsilon; &#917; ζ &zeta; &#918;
η &eta; &#919; θ &theta; &#920; ι &iota; &#921;
κ &kappa; &#922; λ &lambda; &#923; μ &mu; &#924;
ν &nu; &#925; ξ &xi; &#926; ο &omicron; &#927;
π &pi; &#928; ρ &rho; &#929; σ &sigma; &#931;
τ &tau; &#932; υ &upsilon; &#933; φ &phi; &#934;
χ &chi; &#935; ψ &psi; &#936; ω &omega; &#937;
α &alpha; &#945; β &beta; &#946; γ &gamma; &#947;
δ &delta; &#948; ε &epsilon; &#949; ζ &zeta; &#950;
η &eta; &#951; θ &theta; &#952; ι &iota; &#953;
κ &kappa; &#954; λ &lambda; &#955; μ &mu; &#956;
ν &nu; &#957; ξ &xi; &#958; ο &omicron; &#959;
π &pi; &#960; ρ &rho; &#961; ς &sigmaf; &#962;
σ &sigma; &#963; τ &tau; &#964; υ &upsilon; &#965;
φ &phi; &#966; χ &chi; &#967; ψ &psi; &#968;
ω &omega; &#969; ϑ &thetasym; &#977; ϒ &upsih; &#978;
ϖ &piv; &#982; &bull; &#8226; &hellip; &#8230;
&prime; &#8242; &prime; &#8243; &oline; &#8254;
&frasl; &#8260; &weierp; &#8472; &image; &#8465;
&real; &#8476; &trade; &#8482; &alefsym; &#8501;
&larr; &#8592; &uarr; &#8593; &rarr; &#8594;
&darr; &#8595; &harr; &#8596; &crarr; &#8629;
&larr; &#8656; &uarr; &#8657; &rarr; &#8658;
&darr; &#8659; &harr; &#8660; &forall; &#8704;
&part; &#8706; &exist; &#8707; &empty; &#8709;
&nabla; &#8711; &isin; &#8712; &notin; &#8713;
&ni; &#8715; &prod; &#8719; &sum; &#8722;
&minus; &#8722; &lowast; &#8727; &radic; &#8730;
&prop; &#8733; &infin; &#8734; &ang; &#8736;
&and; &#8869; &or; &#8870; &cap; &#8745;
&cup; &#8746; &int; &#8747; &there4; &#8756;
&sim; &#8764; &cong; &#8773; &asymp; &#8773;
&ne; &#8800; &equiv; &#8801; &le; &#8804;
&ge; &#8805; &sub; &#8834; &sup; &#8835;
&nsub; &#8836; &sube; &#8838; &supe; &#8839;
&oplus; &#8853; &otimes; &#8855; &perp; &#8869;
&sdot; &#8901; &lceil; &#8968; &rceil; &#8969;
&lfloor; &#8970; &rfloor; &#8971; &loz; &#9674;
&spades; &#9824; &clubs; &#9827; &hearts; &#9829;
&diams; &#9830;   &nbsp; &#160; ¡ &iexcl; &#161;
¢ &cent; &#162; £ &pound; &#163; ¤ &curren; &#164;
¥ &yen; &#165; ¦ &brvbar; &#166; § &sect; &#167;
¨ &uml; &#168; © &copy; &#169; ª &ordf; &#170;
« &laquo; &#171; ¬ &not; &#172; ­ &shy; &#173;
® &reg; &#174; ¯ &macr; &#175; ° &deg; &#176;
± &plusmn; &#177; ² &sup2; &#178; ³ &sup3; &#179;
´ &acute; &#180; µ &micro; &#181 " &quot; &#34;
< &lt; &#60; > &gt; &#62; '   &#39;