PDA

View Full Version : Some Help With An HTML Code


StarCat
08-28-2005, 08:21 PM
When you read FAQ webpages, alot of times, the answers are all on the same page as the question. When you click on a question though, it links to the part of the page that the answer is on. Does anyone know the HTML code for doing that?

jazz lady
08-28-2005, 09:01 PM
If you click on the IE browser menu under "View" then "Source" you can see the code for the page. :wink:

vraiblonde
08-28-2005, 09:06 PM
You put code in front of the answer: < a name="answer to question" >

Then the code in front of the question will be: < a href="#answer to question" >

Making sure to close your tags, of course. So a sample would look like:

< a href="#bookmarks" >How do I create a link within a page?< /a >< /p >
< a name="bookmarks">You do it with bookmarks< /a >

Make each < a name > something descriptive so you know what links to what.

edit: we must allow html in this forum. Anyway, use the code above without the spaces.

vraiblonde
08-28-2005, 09:15 PM
Now you got me wondering...

<a href="#link">Can I link to a different post?</a>

vraiblonde
08-28-2005, 09:15 PM
<a name="link">Yes I can!</a>

vraiblonde
08-28-2005, 09:16 PM
Cool!

StarCat
08-28-2005, 10:00 PM
Cool!
i'm so confused lol i was wondering about that too because i have seen people post, with a link, that comes up with only one reply to a thread...if you know what i mean. I havent done html in a few years, so it will be interesting to see how my webpage turns out.

vraiblonde
08-28-2005, 10:28 PM
i have seen people post, with a link, that comes up with only one reply to a thread...if you know what i mean.
To do that, you click the post number that's at the top right of the post. It will open just that post into a new window. Then copy the URL and paste it as a link wherever you want it.

StarCat
08-28-2005, 10:35 PM
To do that, you click the post number that's at the top right of the post. It will open just that post into a new window. Then copy the URL and paste it as a link wherever you want it.
i learn something new every day! lol thanks

virgovictoria
08-28-2005, 10:36 PM
Now you got me wondering...

<a href="#link">Can I link to a different post?</a>
I think I must be tired from a week with very little sleep... :confused:

vraiblonde
08-28-2005, 10:39 PM
I think I must be tired from a week with very little sleep...
If you click that link it will take you to post #5 because I made that post a bookmark. Just testing - probably no practical use except for fun.

virgovictoria
08-28-2005, 10:46 PM
If you click that link it will take you to post #5 because I made that post a bookmark. Just testing - probably no practical use except for fun.

yeah, I understand the logic - just the language of the "command" isn't making sense to me right now. No biggie. :peace:


SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.