The Disturbed Web Authoring Tutorials [ H T M L ] The Disturbed Web Authoring Tutorials
|
[ T u t o r i a l s ] [ H T M L ] [ C S S ] [ D H T M L ] [ T i p s ] [ D e s i g n ] [ M i s c ] [ A d d L i n k ] [ A d v e r t i s e ] [ F e e d b a c k ] [ C o n t a c t ] [ H o m e ] |
Lesson SixLinksIn this lesson, we will look at links, and how to make pages pop up in new windows.The link tag is a little more complicated than the other tags mentioned in the previous lessons. Ill cut right to the chase and show you the tag. <A HREF="Page URL">Link description</a>. Once again, just like with the images in the last lesson, replace the page URL with the address of the page you wish to link to. The Link description is what the link will actually say, so if i had the following code <A HREF="http://geocities.datacellar.net">Geocities</a> then it will look like this - Geocities. Remember back to lesson 4, you can change the color of the links etc using RGB codes and attributes in the <BODY> tag. Now you have spent hours building your web page, and you have placed a link on it, and when someone clicks it, they leave your site. But you dont want that do you, you still want them to stay at your site, and look around a bit more. Well this next bit of code you will love. When the user clicks on the link, the page being linked to opens up in a new browser window! The code is below, ill link to Geocities for this example. <A HREF="http://geocities.datacellar.net" target="_blank">Geocities</a> Try it out, by clicking on this link - Geocities There you go! There are some more exciting things do to with links in the Useful JavaScript section of this tutorial. Now it is time for lists, in the next lesson. |
---|
Last modified Thursday 27 January 2000
© 1999 - 2000 Paul Woods
All Rights Reserved
|