HTMLの文字参照

Photo by Marjan Krebelj, http://www.flickr.com/photos/nikio/3899114449/ CC-BY-2.0
Photo by Marjan Krebelj, http://www.flickr.com/photos/nikio/3899114449/ CC-BY-2.0

ホームページを作っているとギリシャ文字や数学記号を使いたくなることがあると思います。そういう場合に、普通にIMEで変換して文字を入力してもよいと思いますが、私はαβγなどを使うことが多いです。

そこで、良く使う文字参照をまとめておきました。

それ以外の文字はから㈀までの数値文字参照(表示には少し時間が掛かるので注意してください。)などを参照してください。

ちなみに、この文字参照を使った記述方法はHTML4.0に対応したブラウザで有効だそうですが、現状ではほぼ全てのブラウザが対応していると思って問題ないかと思います。

よく使う記号

& &
&
&
  &
 
 
" "
"
"
•
•
•
© ©
©
©
® ®
®
®
™
™
™
§ §
§
§
¶
¶
¶
¢ ¢
¢
¢
£ £
£
£
€
€
€
¥ ¥
¥
¥
< &lt;
&#60;
&#x3C;
> &gt;
&#62;
&#x3E;
&lsaquo;
&#8249;
&#x2039;
&rsaquo;
&#8250;
&#x203A;
« &laquo;
&#171;
&#xAB;
» &raquo;
&#187;
&#xBB;
&ndash;
&#8211;
&#x2013;
&mdash;
&#8212;
&#x2014;
&dagger;
&#8224;
&#x2020;
&Dagger;
&#8225;
&#x2021;
&permil;
&#8240;
&#x2030;
&spades;
&#9824;
&#x2660;
&clubs;
&#9827;
&#x2663;
&hearts;
&#9829;
&#x2665;
&diams;
&#9830;
&#x2666;

数学記号

ƒ &fnof;
&#402;
&#x192;
&forall;
&#8704;
&#x2200;
&part;
&#8706;
&#x2202;
&exist;
&#8707;
&#x2203;
&empty;
&#8709;
&#x2205;
&prod;
&#8719;
&#x220F;
&sum;
&#8721;
&#x2211;
&radic;
&#8730;
&#x221A;
&prop;
&#8733;
&#x221D;
&infin;
&#8734;
&#x221E;
&ang;
&#8736;
&#x2220;
&int;
&#8747;
&#x222B;
&there4;
&#8756;
&#x2234;
&sim;
&#8764;
&#x223C;
&asymp;
&#8776;
&#x2248;
&ne;
&#8800;
&#x2260;
&equiv;
&#8801;
&#x2261;
&le;
&#8804;
&#x2264;
&ge;
&#8805;
&#x2265;
&oplus;
&#8853;
&#x2295;
&otimes;
&#8855;
&#x2297;
× &times;
&#215;
&#xD7;
÷ &divide;
&#247;
&#xF7;
± &plusmn;
&#177;
&#xB1;
µ &micro;
&#181;
&#xB5;
¼ &frac14;
&#188;
&#xBC;
½ &frac12;
&#189;
&#xBD;
¾ &frac34;
&#190;
&#xBE;
¹ &sup1;
&#185;
&#xB9;
² &sup2;
&#178;
&#xB2;
³ &sup3;
&#179;
&#xB3;
&sdot;
&#8901;
&#x22C5;

矢印

&larr;
&#8592;
&#x2190;
&uarr;
&#8593;
&#x2191;
&rarr;
&#8594;
&#x2192;
&darr;
&#8595;
&#x2193;
&harr;
&#8596;
&#x2194;
&crarr;
&#8629;
&#x21B5;
&lArr;
&#8656;
&#x21D0;
&uArr;
&#8657;
&#x21D1;
&rArr;
&#8658;
&#x21D2;
&dArr;
&#8659;
&#x21D3;
&hArr;
&#8660;
&#x21D4;

ギリシャ文字 (小文字)

α &alpha;
&#945;
&#x3B1;
β &beta;
&#946;
&#x3B2;
γ &gamma;
&#947;
&#x3B3;
δ &delta;
&#948;
&#x3B4;
ε &epsilon;
&#949;
&#x3B5;
ζ &zeta;
&#950;
&#x3B6;
η &eta;
&#951;
&#x3B7;
θ &theta;
&#952;
&#x3B8;
ι &iota;
&#953;
&#x3B9;
κ &kappa;
&#954;
&#x3BA;
λ &lambda;
&#955;
&#x3BB;
μ &mu;
&#956;
&#x3BC;
ν &nu;
&#957;
&#x3BD;
ξ &xi;
&#958;
&#x3BE;
ο &omicron;
&#959;
&#x3BF;
π &pi;
&#960;
&#x3C0;
ρ &rho;
&#961;
&#x3C1;
ς &sigmaf;
&#962;
&#x3C2;
σ &sigma;
&#963;
&#x3C3;
τ &tau;
&#964;
&#x3C4;
υ &upsilon;
&#965;
&#x3C5;
φ &phi;
&#966;
&#x3C6;
χ &chi;
&#967;
&#x3C7;
ψ &psi;
&#968;
&#x3C8;
ω &omega;
&#969;
&#x3C9;
ϑ &thetasym;
&#977;
&#x3D1;
ϒ &upsih;
&#978;
&#x3D2;
ϖ &piv;
&#982;
&#x3D6;

ギリシャ文字 (大文字)

Α &Alpha;
&#913;
&#x391;
Β &Beta;
&#914;
&#x392;
Γ &Gamma;
&#915;
&#x393;
Δ &Delta;
&#916;
&#x394;
Ε &Epsilon;
&#917;
&#x395;
Ζ &Zeta;
&#918;
&#x396;
Η &Eta;
&#919;
&#x397;
Θ &Theta;
&#920;
&#x398;
Ι &Iota;
&#921;
&#x399;
Κ &Kappa;
&#922;
&#x39A;
Λ &Lambda;
&#923;
&#x39B;
Μ &Mu;
&#924;
&#x39C;
Ν &Nu;
&#925;
&#x39D;
Ξ &Xi;
&#926;
&#x39E;
Ο &Omicron;
&#927;
&#x39F;
Π &Pi;
&#928;
&#x3A0;
Ρ &Rho;
&#929;
&#x3A1;
Σ &Sigma;
&#931;
&#x3A3;
Τ &Tau;
&#932;
&#x3A4;
Υ &Upsilon;
&#933;
&#x3A5;
Φ &Phi;
&#934;
&#x3A6;
Χ &Chi;
&#935;
&#x3A7;
Ψ &Psi;
&#936;
&#x3A8;
Ω &Omega;
&#937;
&#x3A9;

その他の記号

&#8470; &#9728; &#9729; &#9730;
&#9731; &#9732; &#9742; &#9743;
&#9744; &#9745; &#9746; &#9747;
&#9754; &#9755; &#9756; &#9757;
&#9758; &#9759; &#9762; &#9763;
&#9786; &#9787; &#9788; &#9795;
&#9796; &#9797; &#9798; &#9799;
&#9800; &#9801; &#9802; &#9803;
&#9804; &#9805; &#9806; &#9807;
&#9808; &#9809; &#9812; &#9813;
&#9814; &#9815; &#9816; &#9817;
&#9818; &#9819; &#9820; &#9821;
&#9822; &#9823; &#9825; &#9826;
&#9828; &#9831; &#9832; &#9833;
&#9834; &#9835; &#9836; &#9837;
&#9838; &#9839; &#10000; &#10003;
&#10004; &#10005; &#10070; &#10224;
&#10226; &#10227;

これらの文字を表示できない環境もあります。