Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I see thousands of tutorials teaching you a very simple thing, how to use #section to jump to a specific section within your page. However, nobody unveils the secret of coding the target anchor. Can you do that?

share|improve this question

closed as off-topic by John Conde Oct 12 '13 at 14:32

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
"Nobody tell you how to code you page to specify the anchor" Have you tried Googling "html anchor" I see the third result says "Add Anchor Tags To Jump To Specific Location On A Page" –  Anagio Oct 12 '13 at 15:27
add comment

1 Answer 1

up vote 1 down vote accepted

The anchor can be a <div>, <table> etc. So what you need o do is give it an id:

 <td id="tips">

So then, to link to it, you do the following:

http://a.com/a.html#tips

That's all.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.