Home » » Special Characters

Special Characters

Written By Basith on Monday, March 4, 2013 | 7:15 AM

How to use special characters in HTML
So, have you been wondering how to add an extra space on your page, or how to get a copyright symbol to show up? Then let's see how right now! Special characters are placed on your page by using a special reference to the character you want to use. The reference will begin with an ampersand (&), will be followed by some text or numbers, and end with a semicolon (;) . So as an example, let's say you wanted to place an extra space between two words. To do this, you place the reference   where you would like to add the extra space. Here is what you would do:
Hello  there!
This gives us two spaces between "Hello" and "there!", like this:
Hello  there!
The first space is added just using the "space" bar on the keyboard. The Web browser will see the first space, but after that additional spaces will make no difference— you will only see one space in the browser. By adding the   reference, we forced the browser to add an extra space between the two words. You can add as many spaces as you would like by repeating the   reference, like this:
Hello     There!
This will create the first space, and 4 additional spaces between the two words, for a total of five spaces. It will be displayed like this:
Hello     There!
The other one we will discuss is the copyright symbol. You use it the same way as an extra space, by placing its reference where you would like to see the symbol on the page. The reference for a copyright symbol is ©. Here's an example:
This page Copyright © 1999 by me!
This page Copyright © 1999 by me!

 A short listing

Character Representation
Non-Breaking Space  
" "
< &lt;
> &gt;
& &amp;
© &copy;
® &reg;
¢ &cent;
° &deg;
² &sup2;
» &raquo;
« &laquo;
¼ &frac14;
½ &frac12;
¾ &frac34;
± &plusmn;
ü &uuml;
Ø &Oslash;
¡ &iexcl;
ñ &ntilde;

0 comments:

Post a Comment

Followers