Linking Objects |
|||
| |
Linking Objects Linking Object together is the next lesson in this html tutorial. What is linking pages and objects together? It is simply connecting one page to another. If you look to the left of this screen you see that I've linked this one little lonely page with all those other pages. Soooo, how do we do this? Let me show you the command first: Example 3: <a href="home.htm">Home</a> Now what does this mean? Let me take you step by step, because this can be confusing, and my first mistake when I started making web pages came at this point. The A part of <A href=> means anchor, it is in charge of anchoring the word home, notice how it is placed between the two tags. This will make the word Home, the anchor word, or the hyperlink on your web page. href in this tag means, hypertext reference, now, it has an = sign, and then has "home.htm" and then a > closing off this tag. When you upload your web pages to where ever your home page will be stored, you must upload all the files into one folder. If you notice that all the files for this web page that I wrote resides in the folder html. The reason that this must be done is because the <a href="home.htm"> will look only in the folder that you stored your pages in. Okay, so now you can link all the pages that you write together, but
what if you want to link to a friends page? What if you want to create
a link to a webpage outside your web page? Say you think this web page
that I've written is so wonderful that you just have to link it to your
site, what would you do? You would do this: Now, how would you use the <a href> to link to an email? We've
all clicked on the email me links on web pages, so this is how you would
do that: Linking to an object on one web page! Now if this were a very long page, perhaps one that went well past the
length of the window of your screen, you could link to an object on this
page. As an example, I've linked the bottom of this page to the top, just
click back to linking objects Now on to the next lesson: Images!
|
||