Home Logo
Show Full Menu
Hide Full Menu
 

Special Characters

Created: 30/09/10 Views: 876 myFave Image

In this tutorial I will show you some of the main character codes for HTML
Because HTML has to use some symbols and characters for scripting, when you write these into your web page, they may not be assumed as a string but instead as syntax. The way we get over this is to use special entity names.
Here is a list of some special characters, however, if you can't find the one you are looking for it is easy enough to google for it.

Symbols
Character Entity Entity Name Description
& & & Ampersand
< &#60; &lt; Greater than
> &#62; &gt; Less than
" &#34; &quot; Quotation marks
' &#39; &apos; Apostrophe
© &#169; &copy; Copyright
® &#174; &reg; Registered trademark
&#8482; &trade; Trademark
£ &#163; &pound; Pound
&#8364; &euro; Euro
¢ &#162; &cent; Cent
° &#176; &deg; Degrees
× &#215; &times; Times
÷ &#247; &divide; Divide
&sub2 &#178; &sub2; superscript 2
&sub3 &#179; &sub3; Superscript 3
¼ &#188; &frac14; Fraction ¼
½ &#189; &frac12; Fraction ½
¾ &#190; &frac34; Fraction ¾
&#9824; &spades; Spades
&#9830; &diams; diamonds
&#9829; &hearts; Hearts
&#9827; &clubs; clubs

This is all pretty strait forward, but just incase you want some clarification, here's a few of examples.

    Script
  • The Boy &amp; Girl

    Result
  • The Boy & Girl

    Script
  • (3 &times; 9) &divide; 4 = 6.75

    Result
  • (3 × 9) ÷ 4 = 6.75

    Script
  • &frac34; &gt; &frac12;

    Result
  • ¾ > ½



back to: Misc

There are no comments