Lesson No.
7
- Jumping within a page -
In this lesson, we will be using the command
"<a href>" This lesson will teach you
how jump from different section
within a page.
First, decide where you
want to put the "position of the
jump". Lets say that I was
creating a web page on
the index of my book called "A
Guide For HTML" as you all
know, an index is
listed alphabetically, (from A - Z). So, If I only have one page, then I
would need to use the jumping command.
(Without this command, my visitors would have to
scroll down to their destination (ie. if they want to go to the index "N")
Okay, anyways, this is how you would do
it.
1. Assign a name for
the jump (for exmaple, if I want to
have my web page jump
to
the index called "N", I would give the name "N"
Example # 1
<A
NAME="N"> (This is where my psoition is for "N")
<H1><CENTER>N</H1></CENTER>
<P>
<CENTER>This is the idea of
"N"</CENTER>
< - ETC - > (The command
below <NAME="N"> is my web page on the Index "N")
Example # 2
<A
HREF="#N">Go To index N</A>
<A HREF="#L">Go To
index L</A>
This is an example of the command which when someone
clicks on "Go To index N" it will go to the
position of "N" or if someone clicks on "Go to index
L" it will go to the position of "L"
Please note, you should have
the command from Example # 2 first before you have the
command from Example # 1
If you have any questions, please feel free to submit
your questions to me.
END OF LESSON NO. 7
BACK or NEXT |