|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 | ||
|
Kickin' it
Staff
Premium Member
|
Linking to another spot on the same page
Hey all. I'm an HTML newbie and could use some help. I'm trying to create a list that works similarly to this one: http://www.buyusa.gov/auto/team.html , where you click on the state and the browser drops down to that area of the page. I'm not concerned about bullets or the gray 'To the Top" bar.
Anywho, I've been trying to use < a href="state1" >State< /a > on the list and then later down the page, use < a name="state1">State< /a> . This is the basic method I keep finding through Googling. However, the backend of the site I'm working on doesn't seem to like that method. For the first part, it tells me: Quote:
Quote:
Thanks.
__________________
Fold for PCMech: Team 13761 Last edited by Alaron; 11-13-2008 at 01:29 PM. |
||
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
These are called anchors.
typically... PHP Code:
I think you're missing the # symbol in your link By the way, what doctype are you using?
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Last edited by Force Flow; 11-13-2008 at 07:03 PM. |
|
|
|
|
|
#3 |
|
Kickin' it
Staff
Premium Member
|
Thanks FF. I did try the above with the # symbol too.
When I put in your code, my site 'Validator' says that I have an 'illegal URL in href attribute'. It then shows the HTML code and has changed the code to < a href="kupuempty.php?dir=ltr#pagetop" rel="internal" > As for the doctype, I honestly do not know. There is a basic builder in which I can edit text, but I can also go into the HTML code and edit it directly as I've been trying to do. I'm not simply uploading .html files though. Its called their "Template Management System". EDIT: After discussing this with FF further and having little luck with the stubborn system, I'll have to get back to this another time. Last edited by Alaron; 11-13-2008 at 10:17 PM. Reason: Followup |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|