HTML特殊字符编码对照表

对于编程人员来说,HTML是一门很容易入门的编程语言。但也有一些零碎的知识点,不易掌握,比如HTML中有很多特殊字符,你知道多少?本文以HTML的方式写了一个特殊字符对照表,先看效果图:

HTML特殊字符编码对照表.png

源代码如下:

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>HTML特殊字符编码对照表</title>
    <style type="text/css">
        .box{
            width: 770px;
            margin: 0 auto;
        }
        h1,footer{
            text-align: center;
            margin: 15px;
        }
        table{
            width: 100%;
            border-collapse:collapse;
            font-size: 12px;
        }
        td{
            background-color:#F6F6F6;
            border-style: solid;
            border-color: #AAA;
            border-width: 1px;
            padding: 10px;
        }
        td:nth-child(3n+1){
            background-color:#F6F6C6;
        }
        td:hover{
            background-color:orange;
        }
        .title{
            font-weight: 900;
        }
    </style>
</head>

<body>
    <div class="box">
        <h1>HTML特殊字符编码对照表</h1>
        <table>
            <tr class="title">
                <td>特殊符号</td>
                <td>命名实体</td>
                <td>十进制编码</td>
                <td>特殊符号</td>
                <td>命名实体</td>
                <td>十进制编码</td>
                <td>特殊符号</td>
                <td>命名实体</td>
                <td>十进制编码</td>
            </tr>
            <tr>
                <td>Α</td>
                <td>&Alpha;</td>
                <td>&#913;</td>
                <td>Β</td>
                <td>&Beta;</td>
                <td>&#914;</td>
                <td>Γ</td>
                <td>&Gamma;</td>
                <td>&#915;</td>
            </tr>
            <tr>
                <td>Δ</td>
                <td>&Delta;</td>
                <td>&#916;</td>
                <td>Ε</td>
                <td>&Epsilon;</td>
                <td>&#917;</td>
                <td>Ζ</td>
                <td>&Zeta;</td>
                <td>&#918;</td>
            </tr>
            <tr>
                <td>Η</td>
                <td>&Eta;</td>
                <td>&#919;</td>
                <td>Θ</td>
                <td>&Theta;</td>
                <td>&#920;</td>
                <td>Ι</td>
                <td>&Iota;</td>
                <td>&#921;</td>
            </tr>
            <tr>
                <td>Κ</td>
                <td>&Kappa;</td>
                <td>&#922;</td>
                <td>Λ</td>
                <td>&Lambda;</td>
                <td>&#923;</td>
                <td>Μ</td>
                <td>&Mu;</td>
                <td>&#924;</td>
            </tr>
            <tr>
                <td>Ν</td>
                <td>&Nu;</td>
                <td>&#925;</td>
                <td>Ξ</td>
                <td>&Xi;</td>
                <td>&#926;</td>
                <td>Ο</td>
                <td>&Omicron;</td>
                <td>&#927;</td>
            </tr>
            <tr>
                <td>Π</td>
                <td>&Pi;</td>
                <td>&#928;</td>
                <td>Ρ</td>
                <td>&Rho;</td>
                <td>&#929;</td>
                <td>Σ</td>
                <td>&Sigma;</td>
                <td>&#931;</td>
            </tr>
            <tr>
                <td>Τ</td>
                <td>&Tau;</td>
                <td>&#932;</td>
                <td>Υ</td>
                <td>&Upsilon;</td>
                <td>&#933;</td>
                <td>Φ</td>
                <td>&Phi;</td>
                <td>&#934;</td>
            </tr>
            <tr>
                <td>Χ</td>
                <td>&Chi;</td>
                <td>&#935;</td>
                <td>Ψ</td>
                <td>&Psi;</td>
                <td>&#936;</td>
                <td>Ω</td>
                <td>&Omega;</td>
                <td>&#937;</td>
            </tr>
            <tr>
                <td>α</td>
                <td>&alpha;</td>
                <td>&#945;</td>
                <td>β</td>
                <td>&beta;</td>
                <td>&#946;</td>
                <td>γ</td>
                <td>&gamma;</td>
                <td>&#947;</td>
            </tr>
            <tr>
                <td>δ</td>
                <td>&delta;</td>
                <td>&#948;</td>
                <td>ε</td>
                <td>&epsilon;</td>
                <td>&#949;</td>
                <td>ζ</td>
                <td>&zeta;</td>
                <td>&#950;</td>
            </tr>
            <tr>
                <td>η</td>
                <td>&eta;</td>
                <td>&#951;</td>
                <td>θ</td>
                <td>&theta;</td>
                <td>&#952;</td>
                <td>ι</td>
                <td>&iota;</td>
                <td>&#953;</td>
            </tr>
            <tr>
                <td>κ</td>
                <td>&kappa;</td>
                <td>&#954;</td>
                <td>λ</td>
                <td>&lambda;</td>
                <td>&#955;</td>
                <td>μ</td>
                <td>&mu;</td>
                <td>&#956;</td>
            </tr>
            <tr>
                <td>ν</td>
                <td>&nu;</td>
                <td>&#957;</td>
                <td>ξ</td>
                <td>&xi;</td>
                <td>&#958;</td>
                <td>ο</td>
                <td>&omicron;</td>
                <td>&#959;</td>
            </tr>
            <tr>
                <td>π</td>
                <td>&pi;</td>
                <td>&#960;</td>
                <td>ρ</td>
                <td>&rho;</td>
                <td>&#961;</td>
                <td>ς</td>
                <td>&sigmaf;</td>
                <td>&#962;</td>
            </tr>
            <tr>
                <td>σ</td>
                <td>&sigma;</td>
                <td>&#963;</td>
                <td>τ</td>
                <td>&tau;</td>
                <td>&#964;</td>
                <td>υ</td>
                <td>&upsilon;</td>
                <td>&#965;</td>
            </tr>
            <tr>
                <td>φ</td>
                <td>&phi;</td>
                <td>&#966;</td>
                <td>χ</td>
                <td>&chi;</td>
                <td>&#967;</td>
                <td>ψ</td>
                <td>&psi;</td>
                <td>&#968;</td>
            </tr>
            <tr>
                <td>ω</td>
                <td>&omega;</td>
                <td>&#969;</td>
                <td>ϑ</td>
                <td>&thetasym;</td>
                <td>&#977;</td>
                <td>ϒ</td>
                <td>&upsih;</td>
                <td>&#978;</td>
            </tr>
            <tr>
                <td>ϖ</td>
                <td>&piv;</td>
                <td>&#982;</td>
                <td>•</td>
                <td>&bull;</td>
                <td>&#8226;</td>
                <td>…</td>
                <td>&hellip;</td>
                <td>&#8230;</td>
            </tr>
            <tr>
                <td>′</td>
                <td>&prime;</td>
                <td>&#8242;</td>
                <td>″</td>
                <td>&Prime;</td>
                <td>&#8243;</td>
                <td>‾</td>
                <td>&oline;</td>
                <td>&#8254;</td>
            </tr>
            <tr>
                <td>⁄</td>
                <td>&frasl;</td>
                <td>&#8260;</td>
                <td>℘</td>
                <td>&weierp;</td>
                <td>&#8472;</td>
                <td>ℑ</td>
                <td>&image;</td>
                <td>&#8465;</td>
            </tr>
            <tr>
                <td>ℜ</td>
                <td>&real;</td>
                <td>&#8476;</td>
                <td>™</td>
                <td>&trade;</td>
                <td>&#8482;</td>
                <td>ℵ</td>
                <td>&alefsym;</td>
                <td>&#8501;</td>
            </tr>
            <tr>
                <td>←</td>
                <td>&larr;</td>
                <td>&#8592;</td>
                <td>↑</td>
                <td>&uarr;</td>
                <td>&#8593;</td>
                <td>→</td>
                <td>&rarr;</td>
                <td>&#8594;</td>
            </tr>
            <tr>
                <td>↓</td>
                <td>&darr;</td>
                <td>&#8595;</td>
                <td>↔</td>
                <td>&harr;</td>
                <td>&#8596;</td>
                <td>↵</td>
                <td>&crarr;</td>
                <td>&#8629;</td>
            </tr>
            <tr>
                <td>⇐</td>
                <td>&lArr;</td>
                <td>&#8656;</td>
                <td>⇑</td>
                <td>&uArr;</td>
                <td>&#8657;</td>
                <td>⇒</td>
                <td>&rArr;</td>
                <td>&#8658;</td>
            </tr>
            <tr>
                <td>⇓</td>
                <td>&dArr;</td>
                <td>&#8659;</td>
                <td>⇔</td>
                <td>&hArr;</td>
                <td>&#8660;</td>
                <td>∀</td>
                <td>&forall;</td>
                <td>&#8704;</td>
            </tr>
            <tr>
                <td>∂</td>
                <td>&part;</td>
                <td>&#8706;</td>
                <td>∃</td>
                <td>&exist;</td>
                <td>&#8707;</td>
                <td>∅</td>
                <td>&empty;</td>
                <td>&#8709;</td>
            </tr>
            <tr>
                <td>∇</td>
                <td>&nabla;</td>
                <td>&#8711;</td>
                <td>∈</td>
                <td>&isin;</td>
                <td>&#8712;</td>
                <td>∉</td>
                <td>&notin;</td>
                <td>&#8713;</td>
            </tr>
            <tr>
                <td>∋</td>
                <td>&ni;</td>
                <td>&#8715;</td>
                <td>∏</td>
                <td>&prod;</td>
                <td>&#8719;</td>
                <td>∑</td>
                <td>&sum;</td>
                <td>&#8722;</td>
            </tr>
            <tr>
                <td>−</td>
                <td>&minus;</td>
                <td>&#8722;</td>
                <td>∗</td>
                <td>&lowast;</td>
                <td>&#8727;</td>
                <td>√</td>
                <td>&radic;</td>
                <td>&#8730;</td>
            </tr>
            <tr>
                <td>∝</td>
                <td>&prop;</td>
                <td>&#8733;</td>
                <td>∞</td>
                <td>&infin;</td>
                <td>&#8734;</td>
                <td>∠</td>
                <td>&ang;</td>
                <td>&#8736;</td>
            </tr>
            <tr>
                <td>∧</td>
                <td>&and;</td>
                <td>&#8869;</td>
                <td>∨</td>
                <td>&or;</td>
                <td>&#8870;</td>
                <td>∩</td>
                <td>&cap;</td>
                <td>&#8745;</td>
            </tr>
            <tr>
                <td>∪</td>
                <td>&cup;</td>
                <td>&#8746;</td>
                <td>∫</td>
                <td>&int;</td>
                <td>&#8747;</td>
                <td>∴</td>
                <td>&there4;</td>
                <td>&#8756;</td>
            </tr>
            <tr>
                <td>∼</td>
                <td>&sim;</td>
                <td>&#8764;</td>
                <td>≅</td>
                <td>&cong;</td>
                <td>&#8773;</td>
                <td>≈</td>
                <td>&asymp;</td>
                <td>&#8773;</td>
            </tr>
            <tr>
                <td>≠</td>
                <td>&ne;</td>
                <td>&#8800;</td>
                <td>≡</td>
                <td>&equiv;</td>
                <td>&#8801;</td>
                <td>≤</td>
                <td>&le;</td>
                <td>&#8804;</td>
            </tr>
            <tr>
                <td>≥</td>
                <td>&ge;</td>
                <td>&#8805;</td>
                <td>⊂</td>
                <td>&sub;</td>
                <td>&#8834;</td>
                <td>⊃</td>
                <td>&sup;</td>
                <td>&#8835;</td>
            </tr>
            <tr>
                <td>⊄</td>
                <td>&nsub;</td>
                <td>&#8836;</td>
                <td>⊆</td>
                <td>&sube;</td>
                <td>&#8838;</td>
                <td>⊇</td>
                <td>&supe;</td>
                <td>&#8839;</td>
            </tr>
            <tr>
                <td>⊕</td>
                <td>&oplus;</td>
                <td>&#8853;</td>
                <td>⊗</td>
                <td>&otimes;</td>
                <td>&#8855;</td>
                <td>⊥</td>
                <td>&perp;</td>
                <td>&#8869;</td>
            </tr>
            <tr>
                <td>⋅</td>
                <td>&sdot;</td>
                <td>&#8901;</td>
                <td>⌈</td>
                <td>&lceil;</td>
                <td>&#8968;</td>
                <td>⌉</td>
                <td>&rceil;</td>
                <td>&#8969;</td>
            </tr>
            <tr>
                <td>⌊</td>
                <td>&lfloor;</td>
                <td>&#8970;</td>
                <td>⌋</td>
                <td>&rfloor;</td>
                <td>&#8971;</td>
                <td>◊</td>
                <td>&loz;</td>
                <td>&#9674;</td>
            </tr>
            <tr>
                <td>♠</td>
                <td>&spades;</td>
                <td>&#9824;</td>
                <td>♣</td>
                <td>&clubs;</td>
                <td>&#9827;</td>
                <td>♥</td>
                <td>&hearts;</td>
                <td>&#9829;</td>
            </tr>
            <tr>
                <td>♦</td>
                <td>&diams;</td>
                <td>&#9830;</td>
                <td> </td>
                <td>&nbsp;</td>
                <td>&#160;</td>
                <td>¡</td>
                <td>&iexcl;</td>
                <td>&#161;</td>
            </tr>
            <tr>
                <td>¢</td>
                <td>&cent;</td>
                <td>&#162;</td>
                <td>£</td>
                <td>&pound;</td>
                <td>&#163;</td>
                <td>¤</td>
                <td>&curren;</td>
                <td>&#164;</td>
            </tr>
            <tr>
                <td>¥</td>
                <td>&yen;</td>
                <td>&#165;</td>
                <td>¦</td>
                <td>&brvbar;</td>
                <td>&#166;</td>
                <td>§</td>
                <td>&sect;</td>
                <td>&#167;</td>
            </tr>
            <tr>
                <td>¨</td>
                <td>&uml;</td>
                <td>&#168;</td>
                <td>©</td>
                <td>&copy;</td>
                <td>&#169;</td>
                <td>ª</td>
                <td>&ordf;</td>
                <td>&#170;</td>
            </tr>
            <tr>
                <td>«</td>
                <td>&laquo;</td>
                <td>&#171;</td>
                <td>¬</td>
                <td>&not;</td>
                <td>&#172;</td>
                <td>­</td>
                <td>&shy;</td>
                <td>&#173;</td>
            </tr>
            <tr>
                <td>®</td>
                <td>&reg;</td>
                <td>&#174;</td>
                <td>¯</td>
                <td>&macr;</td>
                <td>&#175;</td>
                <td>°</td>
                <td>&deg;</td>
                <td>&#176;</td>
            </tr>
            <tr>
                <td>±</td>
                <td>&plusmn;</td>
                <td>&#177;</td>
                <td>²</td>
                <td>&sup2;</td>
                <td>&#178;</td>
                <td>³</td>
                <td>&sup3;</td>
                <td>&#179;</td>
            </tr>
            <tr>
                <td>´</td>
                <td>&acute;</td>
                <td>&#180;</td>
                <td>µ</td>
                <td>&micro;</td>
                <td>&#181</td>
                <td>"</td>
                <td>&quot;</td>
                <td>&#34;</td>
            </tr>
            <tr>
                <td><</td>
                <td>&lt;</td>
                <td>&#60;</td>
                <td>></td>
                <td>&gt;</td>
                <td>&#62;</td>
                <td>'</td>
                <td> </td>
                <td>&#39;</td>
            </tr>
        </table>
    </div>
    <footer>
        ©2016-04-26 12:28:04 Lynch
    </footer>
</body>

</html>

只需要将上边代码保存到后缀为".html"的文件中,就可以在浏览器中查看。平时需要用到这些特殊字符可以直接查看,无须死记硬背。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容