Lesson 23 - Special Characters

HTML uses certain characters to do certain things. You already know the "<" and ">" characters identify HTML commands. Therefore, you can not use those characters for any other purpose. What happens when you need to show a < or > on the screen? How do you do that?

This is done using even more special characters--an ampersand (&) and a semi-colon (;). By placing certain codes between an ampersand and a semicolon, specific characters appear. If you type "&lt;", HTML knows that is the "less than" character, and a < will be displayed. Likewise, "&gt;" means the "greater than" character, which HTML displays as >.

Special characters can be inserted such as &, §, ©, °, ·, ¼, ¾, é and so on. For a complete list, see this site or this site. For the grandaddy of all special characters (much more than you will ever use), see this site.

Add some special characters to sample2.htm.


By now, your sample2.htm file should look like this.
For more information on the topics of this Lesson, see this site.

Lesson 22 Frames/Inline Frames   < <  PREVIOUS   Table of Contents NEXT  > >   Lesson 24 Forms

Developed with HTML-Kit
Sandersongs Web Tutorials
Contact the Webmasterwith comments.
©2017, by Bill Sanders, all rights reserved.
This domain had 3,940 different visits in the last 30 days.
435,415 hits on this domain since 24 Nov 2006.
http://sandersongs.com/HTMLcourse/Lesson23.php
This page was last modified on our server on 10 Oct 2013
and last refreshed on our server at 12:19 pm, MST
This file took 0.00999 seconds to process.