Menu DaniWeb
Log In Sign Up
  • Read
  • Contribute
  • Meet
  1. Home
  2. Digital Media Forum
  3. UI / UX Design Forum
  4. Code Snippet Repository
  5. Reusable Code Snippet

Adding Page Anchors (links on a site that go to other places on site)

20 Years Ago .:.wolvie.:. 0 Tallied Votes 122 Views Share

Page Anchors... Simple enough...two easy little codes to plug in and your ready to go! Come learn how!

web-design
To make a page anchor, go to the page 
you want to put it on, decide where you 
want it, THE LINK YOU CLICK ON TO JUMP
 TO OTHER PARTS OF THE PAGE,, center, 
left, etc., and plug in this code:

<a href="#codeword">whatever words you want to use</A>

Then after you've done that, decide where 
you want to make the page go to 
automaticly when you click on it. Say i
 wanted one to go to the top of a page,
 then I'd put in this next code BEFORE all 
of my text on the whole page, that way, 
it goes to the TOP and nothing else ;)

<A name="codeword"></A>

After that you may want to test it out and
 see how it works!
About the Author
Member Avatar for .:.wolvie.:.
.:.wolvie.:. 0 Newbie Poster
Be the first to reply
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.

Sign Up — It's Free!
Related Topics
  • Member Avatar Top 7 things I wish I'd known about web design 4
  • Member Avatar How do you integrate a database w/web design? best solution for online catalogue? 1
  • Member Avatar More than one Html page. 14
  • Member Avatar Link to page in page 7
  • Member Avatar Go Back with meta tag 2
  • Member Avatar Dynamic web page for multilingual 1
  • Member Avatar TECH-designer needed 3
  • Member Avatar Guest book in Front Page 2
  • Member Avatar where can i find a good HTML editor ? 21
  • Member Avatar How do i set a page as a Home Page 6
  • Member Avatar Replicate Image 3
  • Member Avatar Navigation Bar that extends the length of the page 5
  • Member Avatar gaps between img and div 1
  • Member Avatar Very new Programmer needs basic help!!! 12
  • Member Avatar CSS Quandary 6
  • Member Avatar Web Design Board 11
  • Member Avatar How to make a drop down menu. 4
  • Member Avatar iframe help 4
  • Member Avatar Password Protection from a txt.file 5
  • Member Avatar IE works fine but Firefox doesn't display tables! 5
Not what you need?

Reach out to all the awesome people in our ui / ux design community by starting your own topic. We equally welcome both specific questions as well as open-ended discussions.

Start New Topic
Topics Feed
Reply to this Topic
Edit Preview

Share Post

Insert Code Block

  • Forums
  • Forum Index
  • Hardware/Software
    • Recommended Topics
  • Programming
    • Recommended Topics
  • Digital Media
    • Recommended Topics
  • Community Center
    • Recommended Topics
  • Latest Content
  • Newest Topics
  • Latest Topics
  • Latest Posts
  • Latest Comments
  • Top Tags
  • Topics Feed
  • Social
  • Top Members
  • Meet People
  • Community Functions
  • DaniWeb Premium
  • Newsletter Archive
  • Markdown Syntax
  • Community Rules
  • Developer APIs
  • Connect API
  • Forum API Docs
  • Tools
  • SEO Backlink Checker
  • Legal
  • Terms of Service
  • Privacy Policy
  • FAQ
  • About Us
  • Advertise
  • Contact Us
© 2025 DaniWeb® LLC