| How to Link to and navigate to another Site, Page, Anchor or to a file. |
![]()
|
Page Contents - Link Web pages and locationsLesson Introduction - Link Web pages and locationsProbably one of the best features of the web is the ability to link. Linking allows you to click on one spot on a page and be:
This is where you will find that creating web pages becomes realy useful. when you can easily benifit from jumping arround a Web page or Web site by the use of links. T171 students are told to make notes as Web pages, I don't know if T170 students are given this advice, but it is an excellent way of taking notes for any student.. Inserting suitable links can make these notes interesting and easy to use. The size of HTML files is a fraction of a word document file, another advantage. John McGuinn
|
|
|
Up to 80% off for Students from Adobe. Plus FREE Shipping Offer
|
PlanningIf you have not already planned out your proposed web site start by doing it now. Plan:
Linking MethodsAbsolute LinkingA reference to a file or web page that contains the full address. E.G. The
home page is: More examples are below. Linking to another page Relative LinkingThis reference does the same job as an absolute reference, but misses out
most of the address. Relative linking always omits the http://www.your-sites-name.com/ When referencing a location on the same Web site, it is best to use
Relative Linking. The file is found based on the location current of
the current file To link to another file in the same folder as the current
document, simply enter the filename. To link to a file in a subfolder of the current document’s
folder, provide the name of the subfolder, then a forward slash /,
and then the filename. To link to a file in the parent folder of the current document’s
folder, precede the filename with ../ More Examples are below Linking to another page
Open University ETMA Restrictions
The Home page reference is
Advantage of Relative LinkingThere is a very big advantage in using Relative Linking. It allows you to move or copy your site, say from your local site on your hard drive, on to your hosts server, without changing all of the links, because relative to each other they are in the same location.
Linking to another pageThis link goes to a file index.htm which is in the same directory as the current page. Note that the default colours of a link are blue underlined text.
This link goes to a file index.html which is in a directory
up one level ( note the ../ in the relative version) from directory
html containing this page. Note that the default colours of a
link are blue underlined text.
Linking to an AnchorIn Netscape Composer Anchor is called Target Named anchors let you set markers in a document and are often placed at a specific topic or at the top of a document. You can then create links to these named anchors, which quickly take your visitor to the specified position. Also known as a target. The anchor will be displayed on the top line of the page. Each anchor on a page must have a unique name, but the same name can be used on different pages. E.g. I have an anchor named Top on the top line of each page. At regular intervals down the page are links to Top, this allows the user to return to the Top of the page, with easy access to the Page content links, or the Site links Declare the Anchor- A elementAnchors are invisible, but they are there. There is an anchor immediatly above the sub heading above and the declaration that I used follows. The H2 element is also shown for clarity. <A name="DeclareAnchor"></A> <h2>Declare the Anchor</H2> Note that Anchor names can only contain letters and numbers and must start with a letter. Spaces are not allowed. The name I have used "DeclareAnchor" relates to subject in the line below. I could have given it any suitable name, the use of "Declare" or "Anchor" in the name is not required. The A element is used is and is followed by the name attribute with a value "DeclareAnchor"
Declare the Link- A elementSample of a Link Declare the Anchor The code for this is: Sample of a Link <A href="#DeclareAnchor">Declare the Anchor</A> The A element is used again but this time is followed by the href attribute with a value "#DeclareAnchor" Note that a hash is placed before the name.
|
|
|||||||||||||||||||||||||||||||||
|
Linking from a ImageBasically the same as linking from text. The same
considerations of Absolute or Relative linking must be made.
Note how the actual link is the same in both text
and image methods. T170 and T171 students should note that in this
site, the image is not in the same folder as this HTML file,
this is shown by the This use of seperate folders must NOT be used
in ETMAs. When doing any ETMA make sure that any graphic
file(s) that you are going to use are in the same folder as
the HTML file(s). Before you code them into your page, and ensure
you use relative links. The code then will look like To do this in Dreamweaver or Composer see above
Links have 4 StatesLinks have a typical appearance, and this appeance can change depending on the link state. The 4 states are:
The appearance of the link can be altered for these 4 states and you will learn how to do this in a style sheet.
|
||||||||||||||||
|
|
Leisure Time - book your holiday or flights with our UK sponsors
More Tutorials
Leeds my home town Relax in the sun.
Copyright © John McGuinn 2001-03 . |