在撰寫網頁時,某些符號無法直接輸入,或會與HTML保留字元衝突,此時就需要透過「命名實體」或「十進制編碼」來呈現。以下整理希臘字母、數學符號、方向箭頭與常用標點的對照資料。
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(⌋)、loz ◊(◊)、spades ♠(♠)、clubs ♣(♣)、hearts ♥(♥)、diams ♦(♦)。
不換行空格 nbsp ( )、倒感嘆號 iexcl ¡(¡)、cent ¢(¢)、pound £(£)、curren ¤(¤)、yen ¥(¥)、brvbar ¦(¦)、sect §(§)、uml ¨(¨)、版權 copy ©(©)、ordf ª(ª)、laquo «(«)、not ¬(¬)、shy ­(­)、註冊 reg ®(®)、macr ¯(¯)、度數 deg °(°)、plusmn ±(±)、上標 sup2 ²(²)、上標 sup3 ³(³)、acute ´(´)、micro µ(µ)。
善用這些實體編碼,可確保頁面在不同編碼環境下都能正確顯示特殊字符。