Introduction
Text
Color Values
Body Attributes
Fonts
Text Effects
Special Characters
Example
Formatting
Links
Lists
Images
Tables
Frames
Forms
Conclusion


Special Characters
Foreign languages such as Spanish, French, etc. have characters that are not found on the standard keyboard. Since you can't just type in these characters from your keyboard onto the screen, there is a special set of codes called character entities. You insert this code into your HTML documents and the browser will render them appropriately. All character entities begin with an ampersand (&) and they also end with a semicolon (;). There are two types of character codes they are text and numeric. The text codes are abbreviations created to make them easy to remember. An example is the ampersand code which is &. The numeric codes have a pound symbol and an assigned number. For example the numeric code for an ampersand is &. Make sure to always place the pound sign when using numeric codes. I have created a table for the most common character entities:

Symbol Description Number Code Name Code
" Double Quote " "
& Ampersand & &
< Lesser Than &#60; &lt;
> Greater Than &#62; &gt;
Trademark &#153; &trade;
  Nonbreaking Space &#160; &nbsp;
¡ Inverted Exclamation Point &#161; &iexcl;
¢ Cent &#162; &cent;
£ Pound &#163; &pound;
¥ Japanese Yen &#165; &yen;
© Copyright &#169; &copy;
® Registration Mark &#174; &reg;
° Degree &#176; &deg;
± Plus or Minus &#177; &plusmn;
Paragraph &#182; &para;
á "a" with acute accent &#225; &aacute;
é "e" with acute accent &#233; &eacute;
í "i" with acute accent &#237; &iacute;
ó "o" with acute accent &#243; &oacute;
ú "u" with acute accent &#250; &uacute;
En dash &#8211; &ndash;
Em dash &#8212; &mdash;

Note: Your computer may have shortcuts for special characters, but just because you can enter them into your text editor doesn't mean that the browsers will render them. Don't rely on shortcuts.

back  next

© Copyright 2000-2002 by Pepmint.com. All Rights Reserved

Search Pepmint.com

home :: tutorial :: portfolio :: links :: hammies :: guestbook :: contact