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.
©2024, by Bill Sanders, all rights reserved.
This domain had 3,550 different visits in the last 30 days.
http://sandersongs.com/HTMLcourse/Lesson23.php
This page was last modified on our server on 11 Jul 2021
and last refreshed on our server at 4:25 pm, UTC
This file took 0.00933 seconds to process.