Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Link code

Reply
Thread Tools

Link code

 
 
Starman
Guest
Posts: n/a
 
      03-08-2006

I want to place a link within a page (the top) to link to another part of
the same page (bottom). How do I do this and what is the code?



 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=
Guest
Posts: n/a
 
      03-08-2006
Starman wrote:

> I want to place a link within a page (the top) to link to another
> part of the same page (bottom). How do I do this and what is the code?


The link at the top:
<a href="#bottomofthepage">Go to the bottom</a>

The reference at the bottom:
<a name="bottomofthepage" id="bottomofthepage"></a>

It doesn't matter what you name them (replacing "bottomofthepage"), as
long as they match. And I've provided both the "name" and "id"
attributes in the second location for backwards compability only. You
may skip one of these (depending on which doctype you're using).

--
Kim André Akerĝ
- http://www.velocityreviews.com/forums/(E-Mail Removed)
(remove NOSPAM to contact me directly)
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      03-08-2006
Starman wrote:

> I want to place a link within a page (the top) to link to another part of
> the same page (bottom). How do I do this and what is the code?


<a href="#id_of_element">foo</a>

<h2 id="id_of_element">Foo</h2> <!-- doesn't have to be an h2 -->

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is D-Link DSL-604T same as D-Link DSL-604+ ? norm Wireless Networking 6 11-18-2005 10:25 AM
RE: Link Link Link =?Utf-8?B?REw=?= Windows 64bit 0 05-17-2005 12:15 PM
Re: Link Link Link DANGER WILL ROBINSON!!! Kevin Spencer ASP .Net 0 05-17-2005 10:41 AM
D-LINK DWL-AG650 doesn't work with WinXP - Zero Configuration Service (WZCSVC) / D-Link AirXpert nearly works Johannes Rosenstock Wireless Networking 0 08-27-2004 11:49 PM
link c code with c++ code using g++ J.Artieda C Programming 1 04-09-2004 01:47 PM



Advertisments