demosthenes.info

Iā€™m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Local Links

html / links

Estimated reading time: 43 seconds

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:

<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.

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.