Jumping around the pages!
This page deals with:
Click here and you can go back to the previous page.
The code for the above is as follows;
So when you want to do a jump, you just put in the code
Replacing MyPage.htm with the name of the htm or html file you want to jump to. (if you want to learn about URLs, then click here.)
Don't forget the end anchor tag, otherwise everything that follows will be a link to that page!
Most attributes in a tag must be lower case, to meet future standards. The old way of writing some of them upper case, or anyway, will not meet future standards.
You must have noticed that hyperlinks or anchors are coloured in a browser. This lets the user know that the text is a link, although the mouse cursor also changes to show the link cursor, probably a hand. The anchor colours are set as a default in the browser, but they can be set for the page in the body tag.
With the above settings, a link that has never been visited is coloured 'red.' One that has been visited is coloured 'green.' And one that is being clicked is coloured 'blue.' If this is not specified, which it normally isn't, then the browser defaults are used.
Click the above link. Your email software will activate and you can look at the subject line. It says 'Sent from HTML Tutorial.' Here's the code;
The part in bold is not essential. It puts the subject line in the email! Can be very useful when you want to know which page inspired the email.
We have now got our pages more interactive. Let's see how we can jump to a particular place in a document!
If you place your cursor over the links below, you will see a little box pop up in a second or two and tell you more about the link. Here is an example code:
You get the effect by adding title="My message" to the link. This enables hyperlinks to have a similar description message to that which has long been available in images (through the ALT text). Use it when some explanation would help. If you are just repeating words in the text, then it is superfluous. It only works in the more modern browsers, but older browsers just ignore it, so it is safe to use.
Most Recent Revision: 18-Oct-98.
I am always pleased to hear from you.