Osnove HTML
Povezave na druge strani
Spoznali bomo...
[How It's Done][Here's How
It's Done][Email Links From Your Page]
How It's Done
Welcome to day four. Today you will learn only one thing--how to
create a link to another page. It's a basic format like any of the others
you have seen so far. Once you learn the format, you can make as many links
as you want to any other page you want. Here's what it looks like. What
is below would create a link to the HTML Goodies home page.
<A HREF="http://www.htmlgoodies.com">Click
Here To Go</A>
Here's What's Happening
-
A stands for Anchor. It begins the attachment to another
page.
-
HREF stands for Hypertext REFerence. That's a nice,
short way of saying, "this is where the link is going to go."
-
http://www.htmlgoodies.com is the FULL ADDRESS of the link. Always
use the full address of the link. Also Notice that the address has
an equal sign in front of it and is enclosed in quotes. Why? Because it's
a command inside of a command. Remember that from yesterday?
-
Where it reads "Click Here To Go" is where you write what you want to appear
on the page. What is in that space will appear on the page for the viewer
to click. So write something denoting the link.
-
/A ends the entire link command.
Here's what will appear on the page using the command above...
Click Here To Go
Now, without clicking, simply lay your pointer on the blue
words. You'll see the address of the link you created come up along the
bottom. Now let's move on to something a little different.
Allowing People to Write To You From Your Page
This is what's known as a mailto: command. It follows the same
formula as the link above. What it does is place blue wording on the screen
that people can click on to send you a piece of email. Here's the pattern:
<A HREF="mailto:sasa@fri.uni-lj.si">Pišite
mi</A>
Notice it's the same format as a link except in a link you put
in an address to jump to. In the "Mailto:" command above, you put "mailto:your_email_address"
in place of the full address.
Here's what you get using the "Mailto:" command above:
Pišite mi
Naslednja lekcija