PDA

View Full Version : Links from Index page to new page eg site contents



REVOLUTIONS
20-08-2006, 03:19 PM
I've got the index page up and running but how do I create a link to another page?

I'm stuck with what to call it. I've uploaded a contact page to my server providor but I can't work out what to call the file to enable the link (or what to call the link) to work.

Any help is appreciated

Thanks

Creature
20-08-2006, 03:54 PM
mine is called a menu page. not sure if this will help as my website is written in good old asp and notepad but heres the commands...

<a href="http://www.hondasohc.co.uk/1stanysparechangerally2007.asp" target="main"> <FONT COLOR="FFD700">Creatures 1st Any Spare Change N.A.B.D Fund raiser </FONT></a><br>

the a href is the actual link to the page you wanna goto

font color - as it says sorts ya colour out

the text afterward sis brief descripton for the link

DMX Will
20-08-2006, 04:16 PM
to continue that....

the "<br>" tag following creature's code creates a new line

Rattz
21-08-2006, 03:12 AM
If the page is in the same directory as the one you are linking from then you don't need to put the http:// etc in i.e.

<a href="contacts.html">Contacts Page</a><br />

also its easier to use all design code as CSS rather than put <font> or other stuff into the code.

In the head section of the webpage place some code as follows...

<style>

a:link
{
color: black;
background: none;
}

a:visited, a:active
{
color: black;
background: none;
}

a:hover
{
color: red;
background: none;
text-decoration: underline;
}

</style>

this will then cover all of your 'a' tags and is much easier to chage one line of code in CSS then to go through the whole of your website.

Once you find out about CSS the best thing is an external style sheet and then just linking all of your pages to it, by using the following piece of code in you head tag...

<link rel="stylesheet" type="text/css" href="css/style.css" />