HOW TO BUILD A PROFESSIONAL WEB SITE     Rel. 1.1

LESSON 04 - Chapter c

How to build a Professional Web Site by Carlo Scodanibbio Valid XHTML 1.0!
home course program course leader enquiries enrol testimonials download

Lessons
welcome
1 - chapter a
1 - chapter b
1 - chapter c
1 - chapter d
1 - chapter e
1 - chapter f
1 - chapter g
1 - chapter h
1 - chapter i
1 - chapter j
1 - chapter k
2 - chapter a
2 - chapter b
2 - chapter c
2 - chapter d
2 - chapter e
2 - chapter f
2 - chapter g
2 - chapter h
3 - chapter a
3 - chapter b
3 - chapter c
3 - chapter d
3 - chapter e
3 - chapter f
3 - chapter g
3 - chapter h
4 - chapter a
4 - chapter b
4 - chapter c
4 - chapter d
4 - chapter e
4 - chapter f
4 - chapter g
4 - chapter h
4 - chapter i
4 - chapter j
4 - chapter k
5 - chapter a
5 - chapter b
5 - chapter c
5 - chapter d
5 - chapter e
5 - chapter f
5 - chapter g
6 - chapter a

about special characters

You cannot type all text character from your keyboard: firstly your keyboard does not have many text characters (for instance certain characters used in other languages, or in math equations) - secondly, certain characters would terribly confuse all Browsers in this world, if typed from the keyboard: typical example the < and > signs (used to encapsulate HTML Tags), if used in a math equation.

There are five very important special characters :

Spec. Character Symbol Description
&nbsp;   non-breaking space
&lt; < less-than
&gt; > greater-than
&amp; & ampersand
&quot; " quotation mark

So the HTML standard makes allowance for entering many different characters, including the so called ASCII characters, within your text, through special encoding of each character entity.
There are two codes allowed for special characters in the HTML language:

  • The one you have just seen, starting with the & sign, followed by the special character abbreviated name, and ending with a semicolon (Named Entity).
  • Or a similar sequence, comprising the & sign, the # (hash, or pound or sharp) sign, the character's position number in the ASCII Table of Characters (instead of the abbreviated name), also ending with a semicolon (Numerical Entity).
  • NB: Special Characters should always be lower case.

In both the above coding methods, the & of a Special Character simply tells the Browser we are inserting a SPECIAL CHARACTER in the textual content - the semicolon means we are ending a SPECIAL CHARACTER - whatever is in between is a code that, hopefully, all Browsers will understand.
Hopefully because, in spite of all Standards, the behaviour of the various available Browsers in their various versions is not always predictable - besides, special characters may or may not be displayed depending on user's platform (computer, operating system, etc.) and user's selected font for display.

hot, hot, hot...
TIP
Here is another way of making multiple blank lines using the NON BREAKING SPACE Special Character:
<BR>&nbsp;<BR>
A sequence of these notations will create multiple blank lines (but do some experiments yourself).

      It is not necessary to use special characters all the time, in fact you need to use them only to insert characters you do not have available in your keyboard and also in instances when typing the real character would confuse the browser.
For this there is no simple rule. It will just come with practice.
For instance I am using these Special Characters a lot in all my Lessons of this Course: do you wish to have a look at it ? Just right click anywhere in this page and view the HTML code..... You will be very impressed, I suppose.


A comprehensive List of all CHARACTER Entities is here.


previousgo back to previous chapter shut-down this HTML story ! go to next chapter - if you still have enough energy....next

http://webbuildcourse.tripod.com

full details of this Course at
http://www.scodanibbio.com/webbuild


Copyright © 2001 onwards Carlo Scodanibbio | All Rights Reserved