Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need Help With Page Display
Old 09-21-2008, 12:11 PM Need Help With Page Display
flyfamilyguy's Avatar
Novice Talker

Posts: 8
Name: Scott
Trades: 0
Hello folks!
I want to create a link on my home page that will take the viewer directly to the position on my page where the subject of the link is. What would I add to:
<a href="index.html">Todays Opinion</a> in order to move the page to the place where "Todays Opinion" is located?
Thanks!
__________________

Please login or register to view this content. Registration is FREE
flyfamilyguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2008, 12:53 PM Re: Need Help With Page Display
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
Put this code where you want to go:-

<div id="opinion">

and to go there:-

<a href="#opinion">
aldor is offline
Reply With Quote
View Public Profile
 
Old 09-21-2008, 03:35 PM Re: Need Help With Page Display
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
This will give you a little more information about anchor text

http://www.w3.org/TR/html401/struct/links.html#h-12.2.3

You can also do it like this (which is what I think you were going for originally)

Code:
 
<a name="opinions" id="opinions">Todays Opinions</a>
Place this where you want the anchor to go

Code:
 
<a href="#opinions">Click here to go to todays opinions</a>
Place this where you want the link that points to the anchor

Both the "id" and "name" method are ok, depends on what you want, the link above will explain more.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 09-21-2008 at 03:44 PM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 09-21-2008, 03:35 PM Re: Need Help With Page Display
flyfamilyguy's Avatar
Novice Talker

Posts: 8
Name: Scott
Trades: 0
Quote:
Originally Posted by aldor View Post
Put this code where you want to go:-

<div id="opinion">

and to go there:-

<a href="#opinion">
Thank You my friend! I have been trying:
Quote:
<a name="opinion"</a>
and
Quote:
<a href="#opinion"></a>
but could not get the page to validate!
__________________

Please login or register to view this content. Registration is FREE
flyfamilyguy is offline
Reply With Quote
View Public Profile
 
Old 09-21-2008, 04:09 PM Re: Need Help With Page Display
flyfamilyguy's Avatar
Novice Talker

Posts: 8
Name: Scott
Trades: 0
Quote:
Originally Posted by bakerc View Post
This will give you a little more information about anchor text

http://www.w3.org/TR/html401/struct/links.html#h-12.2.3

You can also do it like this (which is what I think you were going for originally)

Code:
 
<a name="opinions" id="opinions">Todays Opinions</a>
Place this where you want the anchor to go

Code:
 
<a href="#opinions">Click here to go to todays opinions</a>
Place this where you want the link that points to the anchor

Both the "id" and "name" method are ok, depends on what you want, the link above will explain more.
Thank You bakerc!
Now I'm off to see if it will validate.
__________________

Please login or register to view this content. Registration is FREE
flyfamilyguy is offline
Reply With Quote
View Public Profile
 
Old 09-21-2008, 10:37 PM Re: Need Help With Page Display
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There is no reason at all to use the old <a name>, you can give any element an ID, as suggested in the first reply you got.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-22-2008, 12:23 AM Re: Need Help With Page Display
flyfamilyguy's Avatar
Novice Talker

Posts: 8
Name: Scott
Trades: 0
Thank you LadynRed.
__________________

Please login or register to view this content. Registration is FREE
flyfamilyguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Help With Page Display
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.35485 seconds with 12 queries