|
Home
Webpage Creation - Step 3 The Destination Anchor TagFantastic... Now we have a webpage to work with lets get busy. We are now going to tackle the Destination Anchor (<a href=" "> </a>) tag. This tag is very important, as it's the way you navigate between different pages or sites etc. Before we do this however, we must create a page to link to. <html> <p>My second page.</p> </body> Don't forget to save this file as mysecondpage.html, and close the text editor. In your first text editor, underneath all of your previous work, enter the following: Refresh your web browser or click here to see the results. An explanation of the Destination Anchor tag:
We can do a lot more with Destination Anchor tags, however we'll leave that until later, for the moment we just want a basic understanding and one that works. The Image Source TagFor a bit of light relief we will now deal with putting pictures on your page. You do this by using the image source (<img src=" "></a> ) tag. The name of the picture will go inside the quotes, as with the Desitination Anchor tag.
With your mouse, right click on the picture and select Save picture as, call it mypic.gif and save it. Remember where you put it though, as your going to be writing code to display it. Note: It is generally a good idea to keep all your images in a seperate directory to all your html files. You can call this directory images, which would mean that any reference to the image must be prefixed with the directory path. i.e. <img src="images/mypic.gif"></a> Ok, now you've done that, underneath all the other code you've written on myfirstpage.html start a new line and type: Refresh your web browser or click here to see the results. Note:
Attributes AgainWe are now going to look at the attribute background="x", where "x" would be a picture name, and the path to it. Take a look at what you have done so far, then we'll move on to Step 4.
|
||||||||||||||||||||||||||||||
©Copyright 2008 THUS
|
||||||||||||||||||||||||||||||