htmlには「特殊文字」と呼ばれるものがあります。
「特殊文字」とは「それ自体に意味をもっている文字」のことです。
例えば、「<」はhtmlのタグに使われるものなので、その文字は機械からすると「タグの先頭」という意味を持っています。
なので、「<」と書いても画面には表示されません。機械に「プログラミングとしての命令の一部」として判断されてしまうからです。
もし、ただの文字として表示をしたい場合には、普通に書かずに「特殊文字」としての「文字表記」で書く必要があります。
文字表記の書き方
例えば、「<」を文字として画面に表示する場合、「<」と書きます。
文字表記は必ず「&(アンド、アンパサンドとも言う)」が先頭につき、その後に英数字が続き、「;(セミコロン)」で終わる形式になります。
以下に各特殊文字をただの文字として画面に表示する場合の「文字表記」を記載しますので参考にしてください。
※10進表記、16進表記も記載されていますが、該当の「文字」項目を見つけたら、「文字表記」のブブンをコピペするだけで大丈夫です。
代表的な特殊文字
No. | 文字表記 | 10進表記 | 16進表記 | 文字 | コメント |
---|---|---|---|---|---|
001 | " | " | " | “”” | クォーテーション |
002 | & | & | & | “&” | アンパサンド |
003 | < | < | < | “<“ | 小なり |
004 | > | > | > | “>” | 大なり |
005 | |   |   | ” “ | 空白 |
006 | © | © | © | “©” | コピーライト |
注1)文字表記は必ず小文字で記述。 |
特殊文字一覧
No. | 文字表記 | 10進表記 | 16進表記 | 文字 | コメント | Comment |
---|---|---|---|---|---|---|
001 | " | " | " | “”” | クォーテーション | quotation mark = APL quote |
002 | & | & | & | “&” | アンパサンド | ampersand |
003 | < | < | < | “<“ | 小なり | less-than sign |
004 | > | > | > | “>” | 大なり | greater-than sign |
005 | |   |   | ” “ | 空白 | no-break space = non-breaking space |
006 | ¡ | ¡ | ¡ | “¡” | inverted exclamation mark | |
007 | ¢ | ¢ | ¢ | “¢” | セント | cent sign |
008 | £ | £ | £ | “£” | ポンド | pound sign |
009 | ¤ | ¤ | ¤ | “¤” | currency sign | |
010 | ¥ | ¥ | ¥ | “¥” | 円 | yen sign = yuan sign |
011 | ¦ | ¦ | ¦ | “¦” | 縦棒 | broken bar = broken vertical bar |
012 | § | § | § | “§” | section sign | |
013 | ¨ | ¨ | ¨ | “¨” | diaeresis = spacing diaeresis | |
014 | © | © | © | “©” | コピーライト | copyright sign |
015 | ª | ª | ª | “ª” | feminine ordinal indicator | |
016 | « | « | « | “«” | left-pointing double angle quotation mark = left pointing guillemet | |
017 | ¬ | ¬ | ¬ | “¬” | not sign | |
018 | ­ | ­ | ­ | “” | soft hyphen = discretionary hyphen | |
019 | ® | ® | ® | “®” | registered sign = registered trade mark sign | |
020 | ¯ | ¯ | ¯ | “¯” | macron = spacing macron = overline = APL overbar | |
021 | ° | ° | ° | “°” | degree sign | |
022 | ± | ± | ± | “±” | plus-minus sign = plus-or-minus sign | |
023 | ² | ² | ² | “²” | 平方 | superscript two = superscript digit two = squared |
024 | ³ | ³ | ³ | “³” | 立方 | superscript three = superscript digit three = cubed |
025 | ´ | ´ | ´ | “´” | acute accent = spacing acute | |
026 | µ | µ | µ | “µ” | マイクロ | micro sign |
027 | ¶ | ¶ | ¶ | “¶” | pilcrow sign = paragraph sign | |
028 | · | · | · | “·” | middle dot = Georgian comma = Greek middle dot | |
029 | ¸ | ¸ | ¸ | “¸” | cedilla = spacing cedilla | |
020 | ¹ | ¹ | ¹ | “¹” | superscript one = superscript digit one | |
031 | º | º | º | “º” | masculine ordinal indicator | |
032 | » | » | » | “»” | right-pointing double angle quotation mark = right pointing guillemet | |
033 | ¼ | ¼ | ¼ | “¼” | vulgar fraction one quarter = fraction one quarter | |
034 | ½ | ½ | ½ | “½” | vulgar fraction one half = fraction one half | |
035 | ¾ | ¾ | ¾ | “¾” | vulgar fraction three quarters = fraction three quarters | |
036 | ¿ | ¿ | ¿ | “¿” | inverted question mark = turned question mark | |
037 | À | À | À | “À” | latin capital letter A with grave = latin capital letter A grave | |
038 | Á | Á | Á | “Á” | latin capital letter A with acute | |
039 |  |  |  | “” | latin capital letter A with circumflex | |
040 | à | à | à | “Ô | latin capital letter A with tilde | |
041 | Ä | Ä | Ä | “Ä” | latin capital letter A with diaeresis | |
042 | Å | Å | Å | “Å” | latin capital letter A with ring above = latin capital letter A ring | |
043 | Æ | Æ | Æ | “Æ” | latin capital letter AE = latin capital ligature AE | |
044 | Ç | Ç | Ç | “Ç” | latin capital letter C with cedilla | |
045 | È | È | È | “È” | latin capital letter E with grave | |
046 | É | É | É | “É” | latin capital letter E with acute | |
047 | Ê | Ê | Ê | “Ê” | latin capital letter E with circumflex | |
048 | Ë | Ë | Ë | “Ë” | latin capital letter E with diaeresis | |
049 | Ì | Ì | Ì | “Ì” | latin capital letter I with grave | |
050 | Í | Í | Í | “Í” | latin capital letter I with acute | |
051 | Î | Î | Î | “Δ | latin capital letter I with circumflex | |
052 | Ï | Ï | Ï | “Ï” | latin capital letter I with diaeresis | |
053 | Ð | Ð | Ð | “Д | latin capital letter ETH | |
054 | Ñ | Ñ | Ñ | “Ñ” | latin capital letter N with tilde | |
055 | Ò | Ò | Ò | “Ò” | latin capital letter O with grave | |
056 | Ó | Ó | Ó | “Ó” | latin capital letter O with acute | |
057 | Ô | Ô | Ô | “Ô” | latin capital letter O with circumflex | |
058 | Õ | Õ | Õ | “Õ” | latin capital letter O with tilde | |
059 | Ö | Ö | Ö | “Ö” | latin capital letter O with diaeresis | |
060 | × | × | × | “×” | multiplication sign | |
061 | Ø | Ø | Ø | “Ø” | latin capital letter O with stroke = latin capital letter O slash | |
062 | Ù | Ù | Ù | “Ù” | latin capital letter U with grave | |
063 | Ú | Ú | Ú | “Ú” | latin capital letter U with acute | |
064 | Û | Û | Û | “Û” | latin capital letter U with circumflex | |
065 | Ü | Ü | Ü | “Ü” | latin capital letter U with diaeresis | |
066 | Ý | Ý | Ý | “Ý” | latin capital letter Y with acute | |
067 | Þ | Þ | Þ | “Þ” | latin capital letter THORN | |
068 | ß | ß | ß | “ß” | latin small letter sharp s = ess-zed | |
069 | à | à | à | “à” | latin small letter a with grave = latin small letter a grave | |
070 | á | á | á | “á” | latin small letter a with acute | |
071 | â | â | â | “â” | latin small letter a with circumflex | |
072 | ã | ã | ã | “ã” | latin small letter a with tilde | |
073 | ä | ä | ä | “ä” | latin small letter a with diaeresis | |
074 | å | å | å | “å” | latin small letter a with ring above = latin small letter a ring | |
075 | æ | æ | æ | “æ” | latin small letter ae = latin small ligature ae | |
076 | ç | ç | ç | “ç” | latin small letter c with cedilla | |
077 | è | è | è | “è” | latin small letter e with grave | |
078 | é | é | é | “é” | latin small letter e with acute | |
079 | ê | ê | ê | “ê” | latin small letter e with circumflex | |
080 | ë | ë | ë | “ë” | latin small letter e with diaeresis | |
081 | ì | ì | ì | “ì” | latin small letter i with grave | |
082 | í | í | í | “í” | latin small letter i with acute | |
083 | î | î | î | “î” | latin small letter i with circumflex | |
084 | ï | ï | ï | “ï” | latin small letter i with diaeresis | |
085 | ð | ð | ð | “ð” | latin small letter eth | |
086 | ñ | ñ | ñ | “ñ” | latin small letter n with tilde | |
087 | ò | ò | ò | “ò” | latin small letter o with grave | |
088 | ó | ó | ó | “ó” | latin small letter o with acute | |
089 | ô | ô | ô | “ô” | latin small letter o with circumflex | |
090 | õ | õ | õ | “õ” | latin small letter o with tilde | |
091 | ö | ö | ö | “ö” | latin small letter o with diaeresis | |
092 | ÷ | ÷ | ÷ | “÷” | division sign | |
093 | ø | ø | ø | “ø” | latin small letter o with stroke, = latin small letter o slash | |
094 | ù | ù | ù | “ù” | latin small letter u with grave | |
095 | ú | ú | ú | “ú” | latin small letter u with acute | |
096 | û | û | û | “û” | latin small letter u with circumflex | |
097 | ü | ü | ü | “ü” | latin small letter u with diaeresis | |
098 | ý | ý | ý | “ý” | latin small letter y with acute | |
099 | þ | þ | þ | “þ” | latin small letter thorn with | |
100 | ÿ | ÿ | ÿ | “ÿ” | latin small letter y with diaeresis | |
101 | Œ | Œ | Œ | “?” | latin capital ligature OE | |
102 | œ | œ | œ | “?” | latin small ligature oe | |
103 | Š | Š | Š | “?” | latin capital letter S with caron | |
104 | š | š | š | “?” | latin small letter s with caron | |
105 | Ÿ | Ÿ | Ÿ | “?” | latin capital letter Y with diaeresis | |
106 | ƒ | ƒ | � | “?” | latin small f with hook = function = florin | |
107 | ˆ | ˆ | ˆ | “?” | modifier letter circumflex accent | |
108 | ˜ | ˜ | ˜ | “?” | small tilde | |
109 | Α | Α | Α | “Α” | greek capital letter alpha | |
110 | Β | Β | Β | “Β” | greek capital letter beta | |
111 | Γ | Γ | Γ | “Γ” | greek capital letter gamma | |
112 | Δ | Δ | Δ | “Δ” | greek capital letter delta | |
113 | Ε | Ε | Ε | “Ε” | greek capital letter epsilon | |
114 | Ζ | Ζ | Ζ | “Ζ” | greek capital letter zeta | |
115 | Η | Η | Η | “Η” | greek capital letter eta | |
116 | Θ | Θ | Θ | “Θ” | greek capital letter theta | |
117 | Ι | Ι | Ι | “Ι” | greek capital letter iota | |
118 | Κ | Κ | Κ | “Κ” | greek capital letter kappa | |
119 | Λ | Λ | Λ | “Λ” | greek capital letter lambda | |
120 | Μ | Μ | Μ | “Μ” | greek capital letter mu | |
121 | Ν | Ν | Ν | “Ν” | greek capital letter nu | |
122 | Ξ | Ξ | Ξ | “Ξ” | greek capital letter xi | |
123 | Ο | Ο | Ο | “Ο” | greek capital letter omicron | |
124 | Π | Π | Π | “Π” | greek capital letter pi | |
125 | Ρ | Ρ | Ρ | “Ρ” | greek capital letter rho | |
126 | Σ | Σ | Σ | “Σ” | greek capital letter sigma | |
127 | Τ | Τ | Τ | “Τ” | greek capital letter tau | |
128 | Υ | Υ | Υ | “Υ” | greek capital letter upsilon | |
129 | Φ | Φ | Φ | “Φ” | greek capital letter phi | |
130 | Χ | Χ | Χ | “Χ” | greek capital letter chi | |
131 | Ψ | Ψ | Ψ | “Ψ” | greek capital letter psi | |
132 | Ω | Ω | Ω | “Ω” | greek capital letter omega | |
133 | α | α | α | “α” | greek small letter alpha | |
134 | β | β | β | “β” | greek small letter beta | |
135 | γ | γ | γ | “γ” | greek small letter gamma | |
136 | δ | δ | δ | “δ” | greek small letter delta | |
137 | ε | ε | ε | “ε” | greek small letter epsilon | |
138 | ζ | ζ | ζ | “ζ” | greek small letter zeta | |
139 | η | η | η | “η” | greek small letter eta | |
140 | θ | θ | θ | “θ” | greek small letter theta | |
141 | ι | ι | ι | “ι” | greek small letter iota | |
142 | κ | κ | κ | “κ” | greek small letter kappa | |
143 | λ | λ | λ | “λ” | greek small letter lambda | |
144 | μ | μ | μ | “μ” | greek small letter mu | |
145 | ν | ν | ν | “ν” | greek small letter nu | |
146 | ξ | ξ | ξ | “ξ” | greek small letter xi | |
147 | ο | ο | ο | “ο” | greek small letter omicron | |
148 | π | π | π | “π” | greek small letter pi | |
149 | ρ | ρ | ρ | “ρ” | greek small letter rho | |
150 | ς | ς | ς | “?” | greek small letter final sigma | |
151 | σ | σ | σ | “σ” | greek small letter sigma | |
152 | τ | τ | τ | “τ” | greek small letter tau | |
153 | υ | υ | υ | “υ” | greek small letter upsilon | |
154 | φ | φ | φ | “φ” | greek small letter phi | |
155 | χ | χ | χ | “χ” | greek small letter chi | |
156 | ψ | ψ | ψ | “ψ” | greek small letter psi | |
157 | ω | ω | ω | “ω” | greek small letter omega | |
158 | ϑ | ϑ | ϑ | “?” | greek small letter theta symbol | |
159 | ϒ | ϒ | ϒ | “?” | greek upsilon with hook symbol | |
160 | ϖ | ϖ | ϓ | “?” | greek pi symbol | |
161 | • | • | • | “?” | bullet = black small circle | |
162 | … | … | … | “…” | horizontal ellipsis = three dot leader | |
163 | ′ | ′ | ′ | “′” | prime = minutes = feet | |
164 | ″ | ″ | ″ | “″” | double prime = seconds = inches | |
165 | ‾ | ‾ | ‾ | “?” | overline = spacing overscore | |
166 | ⁄ | ⁄ | ⁄ | “?” | fraction slash | |
167 | ℘ | ℘ | ℘ | “?” | script capital P = power set = Weierstrass p | |
168 | ℑ | ℑ | ℑ | “?” | blackletter capital I = imaginary part | |
169 | ℜ | ℜ | ℜ | “?” | blackletter capital R = real part symbol | |
170 | ™ | ™ | ™ | “™” | trade mark sign | |
171 | ℵ | ℵ | ℵ | “?” | alef symbol = first transfinite cardinal | |
172 | ← | ← | ← | “←” | leftwards arrow | |
173 | ↑ | ↑ | ↑ | “↑” | upwards arrow | |
174 | → | → | → | “→” | rightwards arrow | |
175 | ↓ | ↓ | ↓ | “↓” | downwards arrow | |
176 | ↔ | ↔ | ↔ | “?” | left right arrow | |
177 | ↵ | ↵ | ↵ | “?” | downwards arrow with corner leftwards = carriage return | |
178 | ⇐ | ⇐ | ⇐ | “?” | leftwards double arrow | |
179 | ⇑ | ⇑ | ⇑ | “?” | upwards double arrow | |
180 | ⇒ | ⇒ | ⇒ | “⇒” | rightwards double arrow | |
181 | ⇓ | ⇓ | ⇓ | “?” | downwards double arrow | |
182 | ⇔ | ⇔ | ⇔ | “⇔” | left right double arrow | |
183 | ∀ | ∀ | ∀ | “∀” | for all | |
184 | ∂ | ∂ | ∂ | “∂” | partial differential | |
185 | ∃ | ∃ | ∃ | “∃” | there exists | |
186 | ∅ | ∅ | ∅ | “?” | empty set = null set = diameter | |
187 | ∇ | ∇ | ∇ | “∇” | nabla = backward difference | |
188 | ∈ | ∈ | ∈ | “∈” | element of | |
189 | ∉ | ∉ | ∉ | “?” | not an element of | |
190 | ∋ | ∋ | ∋ | “∋” | contains as member | |
191 | ∏ | ∏ | ∏ | “?” | n-ary product = product sign | |
192 | ∑ | ∑ | ∑ | “∑” | n-ary sumation | |
193 | − | − | − | “?” | minus sign | |
194 | ∗ | ∗ | ∗ | “?” | asterisk operator | |
195 | √ | √ | √ | “√” | square root = radical sign | |
196 | ∝ | ∝ | ∝ | “∝” | proportional to | |
197 | ∞ | ∞ | ∞ | “∞” | infinity | |
198 | ∠ | ∠ | ∠ | “∠” | angle | |
199 | ∧ | ∧ | ∧ | “∧” | logical and = wedge | |
200 | ∨ | ∨ | ∨ | “∨” | logical or = vee | |
201 | ∩ | ∩ | ∩ | “∩” | intersection = cap | |
202 | ∪ | ∪ | ∪ | “∪” | union = cup | |
203 | ∫ | ∫ | ∫ | “∫” | integral | |
204 | ∴ | ∴ | ∴ | “∴” | therefore | |
205 | ∼ | ∼ | ∼ | “?” | tilde operator = varies with = similar to | |
206 | ≅ | ≅ | ≅ | “?” | approximately equal to | |
207 | ≈ | ≈ | ≈ | “?” | almost equal to = asymptotic to | |
208 | ≠ | ≠ | ≠ | “≠” | not equal to | |
209 | ≡ | ≡ | ≡ | “≡” | identical to | |
210 | ≤ | ≤ | ≤ | “?” | less-than or equal to | |
211 | ≥ | ≥ | ≥ | “?” | greater-than or equal to | |
212 | ⊂ | ⊂ | ⊂ | “⊂” | subset of | |
213 | ⊃ | ⊃ | ⊃ | “⊃” | superset of | |
214 | ⊄ | ⊄ | ⊄ | “?” | not a subset of | |
215 | ⊆ | ⊆ | ⊆ | “⊆” | subset of or equal to | |
216 | ⊇ | ⊇ | ⊇ | “⊇” | superset of or equal to | |
217 | ⊕ | ⊕ | ⊕ | “?” | circled plus = direct sum | |
218 | ⊗ | ⊗ | ⊗ | “?” | circled times = vector product | |
219 | ⊥ | ⊥ | ⊥ | “⊥” | up tack = orthogonal to = perpendicular | |
220 | ⋅ | ⋅ | ⋅ | “?” | dot operator | |
221 | ⌈ | ⌈ | ⌈ | “?” | left ceiling = apl upstile | |
222 | ⌉ | ⌉ | ⌉ | “?” | right ceiling | |
223 | ⌊ | ⌊ | ⌊ | “?” | left floor = apl downstile | |
224 | ⌋ | ⌋ | ⌋ | “?” | right floor | |
225 | ⟨ | 〈 | 〈 | “?” | left-pointing angle bracket = bra | |
226 | ⟩ | 〉 | 〉 | “?” | right-pointing angle bracket = ket | |
227 | ◊ | ◊ | ◊ | “?” | lozenge | |
228 | ♠ | ♠ | ♠ | “?” | スペード | black spade suit |
229 | ♣ | ♣ | ♣ | “?” | クラグ | black club suit = shamrock |
230 | ♥ | ♥ | ♥ | “?” | ハート | black heart suit = valentine |
231 | ♦ | ♦ | ♦ | “?” | ダイヤ | black diamond suit |
232 |   |   |   | “?” | en space | |
233 |   |   |   | “?” | em space | |
234 |   |   |   | “?” | thin space | |
235 | ‌ | ‌ | ‌ | “?” | zero width non-joiner | |
236 | ‍ | ‍ | ‍ | “?” | zero width joiner | |
237 | ‎ | ‎ | ‎ | “?” | left-to-right mark | |
238 | ‏ | ‏ | ‏ | “?” | right-to-left mark | |
239 | – | – | – | “?” | en dash | |
240 | — | — | — | “?” | em dash | |
241 | ‘ | ‘ | ‘ | “‘” | left single quotation mark | |
242 | ’ | ’ | ’ | “’” | right single quotation mark | |
243 | ‚ | ‚ | ‚ | “?” | single low-9 quotation mark | |
244 | “ | “ | “ | ““” | left double quotation mark | |
245 | ” | ” | ” | “”” | right double quotation mark | |
246 | „ | „ | „ | “?” | double low-9 quotation mark | |
247 | † | † | † | “†” | dagger | |
248 | ‡ | ‡ | ‡ | “‡” | double dagger | |
249 | ‰ | ‰ | ‰ | “‰” | per mille sign | |
250 | ‹ | ‹ | ‹ | “?” | single left-pointing angle quotation mark |