demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

Local Links

Local link exampleFor small sites of less than a dozen pages, the easiest way to link an HTML page to another resource is to ensure that files are next to each other, i.e. in the same location. In our example, we will assume that you are trying to link from one page to another: creating a link on page1.html to go to page2.html. In that case you would write:

  1. <a href="page2.html">Go to Page 2</a>

Note that nothing else is needed for information - the web browser assumes that page2.html is in the same location as the page it is linked to. If the pages were in different locations we would need to add path information. You should never write local links in absolute format: if your domain name or site structure changes, the link will cease to work.

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.