Some Coding Help

User 2623310 Photo


Ambassador
282 posts

Hi All,

I need some help on some coding. I have the following on web that I'm creating

A - B - C - D - E - F - G - H- I

I would like it to do, If I click on the letter F it will take me to where the letter F starts on the page.

Is there any code out there to this?

Thanks for all your help!
User 2088758 Photo


Senior Advisor
3,111 posts

Hi there Scott,

Yes you can do this by using anchors. Here is a good article explaining how to do it

http://www.yourhtmlsource.com/text/internallinks.html
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 187934 Photo


Senior Advisor
20,266 posts

Stick to the ID method.
<a href="#a">A</a><a href="#b">B</a><a href="#c">C</a><a href="#d">D</a>
<div id="a">This is A</div>
<div id="b">This is B</div>
<div id="c">This is C</div>
<div id="d">This is D</div>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2623310 Photo


Ambassador
282 posts

Steve and Eric,

Thanks for your help.

Scott

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.