How to use forbidden characters. Colour charts.

Tutorial 3

Author: Ian McAllister

Use universal codes. Certain characters and colours will ruin your web pages. (Some browsers can handle them.) For instance the quote mark (") is used in HTML code, so might confuse your browser if it is used in your page. The same applies to the ampersand (&). Each browser handles colours differently.

This lesson will cover special characters. You should print out the character chart, and keep it for reference.

There will also be a link to a colour chart to use as a reference. Good colour design says that you should be sparing with your use of colours. Limit yourself to three colours on your page, including black.

Special characters that are used in HTML coding (< > " &) must not be typed in directly, because it confuses some browsers. Always remember to use the special code for these characters. &lt; &gt; &quot; &amp;
Each code starts with a & sign and ends with a semicolon (;). Whatever you do, don't forget the semicolon. It is very easy to forget.


The non-breaking space (shown as &nbsp;) is used because HTML code removes all spaces except one, so if you want many spaces, use non-breaking spaces one after the other.

Some characters may not be displayed on all browsers.



Description of character



HTML code



How it appears

Single Quote &#39; '
Quotation mark &quot; "
Ampersand &amp; &
Less than &lt; <
Greater than &gt; >
Non-breaking space &nbsp;  
Cent sign &cent; ¢
Pound sterling &pound; £
General currency sign &curren; ¤
Yen &yen; ¥
Broken vertical &brvbar; ¦
Section &sect; §
Umlaut (dieresis) &uml; or &die; ¨
Copyright &copy; ©
Right angle quote &raquo; »
Left angle quote &laquo; «
Not sign &not; ¬
Registered trademark &reg; ®
Macron accent &macr; ¯
Degree &deg; °
Plus or minus &plusmn; ±
Superscript 1 &sup1; ¹
Superscript 2 &sup2; ²
Superscript 3 &sup3; ³
Acute accent &acute; ´
Micro &micro; µ
Paragraph &para;
Middle dot &middot; ·
Cedilla &cedil; ¸
Fraction quarter &frac14; ¼
Fraction half &frac12; ½
Fraction three fourths &frac34; ¾
Inverted question mark &iquest; ¿
Capital A grave &Agrave; À
Small a grave &agrave; à
Capital A acute &Aacute; Á
Small a acute &aacute; á
Capital A circumflex &Acirc; Â
Small a circumflex &acirc; â
Capital A tilde &Atilde; Ã
Small a tilde &tilde; ã
Capital A umlaut &Auml; Ä
Small a umlaut &auml; ä
Capital A ring &Aring; Å
Small a ring &aring; å
Capital AE (ligature) &AElig; Æ
Small ae ligature &aelig; æ
Capital C cedilla &Ccedil; Ç
Small c cedilla &ccedil; ç
Capital E grave &Egrave; È
Small e grave &egrave; è
Capital E acute &Eacute; É
Small e acute &eacute; é
Capital E circumflex &Ecirc; Ê
Small e circumflex &ecirc; ê
Capital E umlaut &Euml; Ë
Small e umlaut &emul; ë
Capital I grave &Igrave; Ì
Small i grave &igrave; ì
Capital I acute &Iacute; Í
Small i acute &iacute; í
Capital I circumflex &Icirc; Î
Small i circumflex &icirc; î
Capital I umlaut &Iuml; Ï
Small i umlaut &iuml; ï
Capital Eth, Icelandic &ETH; Ð
Small eth, Icelandic &eth; ð
Capital N tilde &Ntilde; Ñ
Small n tilde &ntilde; ñ
Capital O grave &Ograve; Ò
Small o grave &ograve; ò
Capital O acute &Oacute; Ó
Small o acute &oacute; ó
Capital O circumflex &Ocirc; Ô
Small o circumflex &ocirc; ô
Capital O umlaut &Ouml; Ö
Small o umlaut &ouml; ö
Capital O slash (phi) &Oslash; Ø
Small o slash (phi) &oslash; ø
Capital U grave &Ugrave; Ù
Small u grave &ugrave; ù
Capital U acute &Uacute; Ú
Small u acute &uacute; ú
Capital U circumflex &Ucirc; Û
Small u circumflex &ucirc; û
Capital U umlaut &Uuml; Ü
Small u umlaut &uuml; ü
Capital Y acute &Yacute; Ý
small y acute &yacute; ý
Capital THORN Icelandic &THORN; Þ
small thorn Icelandic &thorn; þ
Capital Y acute &Yacute; Ý
Smal y acutel &yacute; ý
szl ligature (German) &szlig; ß


Only some colours are reliable

Different colours are handled differently by different browsers. You have millions of colours to choose from. Limit your colours to the ones listed here, because all browsers seem to accept these.

Click here for the colour chart file. You should save the file for future reference. Just click on File, Save as, and choose the directory where you are keeping all your HTML code, make sure the file type is HTML, and type in the name colours.html.

Then at any time, you can open a second window in your browser and click on File, Open File, Choose File. Choose colours.html to view the chart. Then you can switch between the chart and the masterpiece of colour that you are creating.

If you see a colour on a web page that you would like to use, then download this little free program. Install Color Detector and put the icon in the bottom toolbar for quick start. To use it, click the quick-start icon and hover your mouse over the colour that you like. You'll see the Hex code. Use that color as "#hex code" in your color tags. Close Color Detector once you are finished with it.

Next: How to use HTML tables for an organized appearance









Get your webmaster tools and resources while they are still free.

Click for member privileges
Privileges Make Own Website

Main Menu

Home |

Articles

HTML tutorial 1 | 2. Formatting Text | 3. Characters & colors | 4. Tables | 5. Hypertext Links | 6. Templates | 7. Graphics | 8. Transparent Graphics | 9. Forms part 1 | 10. Forms part 2 | Important Head Section | HTML Article List |

Search

Custom Search

News About...

Html3