A Cropping Tool There are times when you need to display special HTML characters or symbols on your Web page, such as the copyright symbol (©), a degree symbol (°), or a letter from a foreign alphabet such as an e with an "acute" accent (é). However, these characters and symbols are not on the keyboard. There are other times when the character is on the keyboard, but if it were to be used on a Web page it would confuse the browser because it is part of an HTML tag or attribute structure, such as the less than symbol, also called a left angle bracket (<), the greater than symbol or right angle bracket (>), and the quotation mark ("). Another issue arises when it is necessary to insert two or more spaces into a page. HTML ignores multiple spaces, so non-breaking spaces (&nbsp;) are required. And finally there are foreign currency symbols such as the pound (£), the euro (€), or the yen (¥).

Below is the simple HTML code used to display: by Floyd Jay Winters © 2010
<p>by Floyd Jay Winters &copy; 2010</p>

For another example of using special character, consider that you cannot display quotes within quotes. You will confuse the browser. For instance, perhaps you want to show a student what to type on the keyboard to display an image in a Web page. Below is the line code you would type in Notepad for the image to display:
<img src="images/monitor.png" alt="Monitor">

But to show the actual line of code to the viewer, without the code being rendered by the browser, you would type:
&lt;img src=&quot;images/monitor.png&quot; alt=&quot;Monitor&quot;&gt;
Notice the use of the &lt; for the < and the &quot; for the " and &gt; for the >.

These special HTML characters and symbols begin with an ampersand (&) and end with a semicolon (;). Below is a table displaying the most common HTML special characters and symbols. However, there are numerous other special characters, especially when you consider that the non-roman characters in international alphabets are extensive, such as ç or ñ or ö.

For a more extensive listing see:
and webmonkey.com/special_characters/

Symbol Description of Common Special Characters Html code
Ampersand & &amp;
Cent sign ¢ &cent;
Copyright symbol © &copy;
Registered symbol ® &reg;
Trademark &trade;
Rx ℞ HTML5, may not work on some browsers &rx;
Degree sign ° &deg;
Infinity &infin;
Pi π &pi;
Greater than > &gt;
Less than < &lt;
Greater or equal &ge;
Gamma Γ &Gamma;
Lambda Λ &Lambda;
Omega Ω &Omega;
Phi Φ &Phi;
Sigma Σ &Sigma;
O Slash Ø &Oslash;
Non-breaking space &nbsp; &nbsp; will display two spaces &nbsp;
One half ½ &frac12;
One quarter ¼ &frac14;
Divide ÷ ÷ &div; &#247;
Quote " &quot;
Apostrophe ' &#39;
Pound £ &pound;
Euro &euro;
Yen ¥ &yen;
Bullet &bull;
Club &clubs;
Diamond &diams;
Heart &hearts;
Spade &spades;
Dagger &dagger;
Up Arrow &uarr;
Down Arrow &darr;
Left Arrow &larr;
Right Arrow &rarr;
Right Arrow 2 &rArr;
Paragraph mark &para;
Section symbol § &sect;
Cedilla ç Ç (a hook under a letter, in Spanish) &ccedil;
Eñe ñ Ñ (a tilde over a letter, in Spanish) &ntilde;
accent acute é É (an apostrophe over a letter, in French) &eacute;
Oumlat ö Ö (a pair of dots above a vowel in Germanic languages) &ouml;
Pencil ✏ will display different on some browsers &#9999;
Envelope ✉ check on various browsers &#9993;
Scissors ✂ check on various browsers &#9986;
Pointing Finger ☛ check on various browsers &#9755;
Crown ♚ will display different on some browsers &#9818;
Knight ♞ will display different on some browsers &#9822;
Castle ♜ will display different on some browsers &#9820;
Peace &#9774;
Recycle &#9851;
Wheelchair &#9855;
Warning Sign &#9888;
Radioactive &#9762;
White Flag &#9872;
Die face 3 &#9858;
Die face 6 &#9861;
Smiley Face &#9786;
Frowny Face &#9785;
Female &#9792;
Male &#9794;
Yin Yang &#9775;
Music ¼ & ⅛ Notes ♪ ♫ &#9834; &#9835;
Right triangle/Play ▶ may not work on older browsers &#9654;
Square/Stop ◼ may not work on older browsers &#9724;
Circle ⚪ ○ HTML5, test on various browsers &#9898; &cir;
Rectangle ▭ ▭ HTML5, test on various browsers &#9645; &rect;
Maltese ✠ ✠ &#10016; &malt;
Check ✓ ✓ &#10003; &check;
Star black ★ ★ &#9733; &starf;
Star white ☆ ☆ &#9734; &star;
Sun &#9788;
Moon &#9789;
Soccer Ball ⚽ check on various browsers &#9917;
Base Ball ⚾ may not work on older browsers &#9918;
Water/Aquarius ♒ may not work on older browsers &#9810;
Sailboat ⛵ may not work on older browsers &#9973;
Wheel ☸ will display different on some browsers &#9784;
Anchor ⚓ may not work on older browsers &#9875;

Experiment and become good at inserting special characters into Web pages.

For more HTML code samples see: www.w3schools.com
For other resources and tutorials see: quackit.com and htmlquick.com

Validation checks the syntax of your file, looking for both errors and possible issues when viewing your page in a browser. Some of the problems reported are missing end tags, missing characters, invalid attributes, incorrect nesting of elements...
 your file, see: http://validator.w3.org

Review Assignment Learning Project: 10 Practice Review Steps

Return to Menu   Top