[bcab] Re: html coding

Hi Chris,

OK, I've got that, but it now causes me to question the validity of my hyperlinks,
and I wondered if you could just explain the route hierarchy of the url that
I want to link to.


For example:

<a href="http://www.extremelyadventurous.co.uk   [that
obviously points to the
route folder]  if within that folder I had a file titled about.txt, would
the remainder of the hyperlink then be
/about.html#About">
About - who are we?</a>

Or by including the id fragmenter in there #about is this taking the link
direct to the id on the about.html page? and in that case, if I want people
to land at the top of the page would I exclude that bit?

and so on and so forth, so if I had a sub folder

for example <a href="http://www.extremelyadventurous.co.uk/holidays/lakes.html#lakes";>lakes adventure taster</a> Sorry to sound so simple and confused, but even following the tutorials I am still unsure, and I know that I can rely on help on this list.

Thanks

Colin


----- Original Message ----- From: "Chris Mills" <cmills@xxxxxxxxx>
To: <bcab@xxxxxxxxxxxxx>
Sent: Friday, January 30, 2009 8:54 AM
Subject: [bcab] Re: html coding



On 30 Jan 2009, at 08:25, Colin Fowler wrote:

Hi,
Thanks to everyone for the previous help on this subject.

I've another question now, how would I code a link to another page so that it lands exactly on the content within that page that I want to direct it to?


Hi Colin,

You have to use an id to identify the content you want to jump to, and then link to it using an absolute URL plus a fragment identifier)

So in the page you want to link to (say it has a URL of http://www.foodtips.com/fastfood.html) , you'd have something like the following:

<p id="cheeseburgers">This is some content about cheeseburgers.</p>

and then have the following link in the document you want to link to it from:

<p>See elsewhere on the site for <a href="http://www.foodtips.com/fastfood.html/#cheeseburgers ">More information about cheese burgers</a>.</p>

you can use the id attribute on most HTML elements; you could link to exact section from the page just by using the fragment identifier on its own, for example <a href="#cheeseburgers">More information about cheese burgers</a>

More information about links is available at http://dev.opera.com/articles/view/18-html-links-let-s-build-a-web/ To find out more about BCAB and the benefits that membership can bring, please visit our website:
http://www.bcab.org.uk/

To manage your subscription to the BCAB mailing list, please visit our website:
http://www.bcab.org.uk/mailing-list.html

To discuss matters relating to the mailing list, please email bcab-moderators@xxxxxxxxxxxxx


--
No virus found in this incoming message.
Checked by AVG. Version: 7.5.552 / Virus Database: 270.10.15/1924 - Release Date: 29/01/2009 17:57


To find out more about BCAB and the benefits that membership can bring, please 
visit our website:
http://www.bcab.org.uk/

To manage your subscription to the BCAB mailing list, please visit our website:
http://www.bcab.org.uk/mailing-list.html

To discuss matters relating to the mailing list, please email 
bcab-moderators@xxxxxxxxxxxxx

Other related posts: