Lompat ke konten Lompat ke sidebar Lompat ke footer

HTML Symbols

HTML Symbol Entities


HTML entities was described in the previous chapter.

HTML symbols like mathematical operators, arrows, technical symbols and shapes, are not present on a normal keyboard.

To add these symbols to an HTML page, you can use the HTML entity name.

If no entity name exists, you can use the entity number.

If the character does not have an entity name, you can use a decimal (or hexadecimal) reference.







NoteIf you use an HTML entity name, or number, the character will always display correctly.
This is independent of what character set (encoding) your page uses!


Example


<p>I will display &euro;<p>
<p>I will display €<p>
<p>I will display €<p>

Will display as:


I will display €
I will display €
I will display €

Try it yourself »






Some Mathematical Symbols Supported by HTML







































































CharNumberEntityDescription
&forall;FOR ALL
&part;PARTIAL DEFFERENCIAL
&exist;THERE EXISTS
&empty;EMPTY SETS
&nabla;NABLA
&isin;ELEMENT OF
&notin;NOT AN ELEMENT OF
&ni;CONTAINS A MEMBER
&prod;N-ARY PRODUCT
&sum;N-ARY SUMMATION

Full Math Reference




Some Greek Letters Supported by HTML















































CharNumberEntityDescription
ΑΑ&Alpha;GREEK CAPITAL LETTER ALPHA
ΒΒ&Beta;GREEK CAPITAL LETTER BETA
ΓΓ&Gamma;GREEK CAPITAL LETTER GAMMA
ΔΔ&Delta;GREEK CAPITAL LETTER DELTA
ΕΕ&Epsilon;GREEK CAPITAL LETTER EPSILON
ΖΖ&Zeta;GREEK CAPITAL LETTER ZETA

Full Greek Reference




Some Other Entities Supported by HTML



















































































CharNumberEntityDescription
©©&copy;REGISTERED SIGN
®®&reg;REGISTERED SIGN
&euro;EURO SIGN
&trade;TRADEMARK
&larr;LEFTWARDS ARROW
&uarr;UPWARDS ARROW
&rarr;RIGHTWARDS ARROW
&darr;DOWNWARDS ARROW
&spades;BLACK SPADE SUIT
&clubs;BLACK CLUB SUIT
&hearts;BLACK HEART SUIT
&diams;BLACK DIAMOND SUIT

Full Currency Reference

Full Arrows Reference

Full Symbols Reference

Posting Komentar untuk "HTML Symbols"