Tue. Mar 19th, 2024

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.

If 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 €

Some Mathematical Symbols Supported by HTML

Char Number Entity Description
&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

 


Some Greek Letters Supported by HTML

Char Number Entity Description
Α Α &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

 


Some Other Entities Supported by HTML

Char Number Entity Description
© © &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

 

5,656 total views, 1 views today

Leave a Reply