User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,637 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,289 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Mar 27th, 2005
Views: 4,158
Page Anchors... Simple enough...two easy little codes to plug in and your ready to go! Come learn how!
html Syntax | 2 stars
  1. To make a page anchor, go to the page
  2. you want to put it on, decide where you
  3. want it, THE LINK YOU CLICK ON TO JUMP
  4. TO OTHER PARTS OF THE PAGE,, center,
  5. left, etc., and plug in this code:
  6.  
  7. <a href="#codeword">whatever words you want to use</A>
  8.  
  9. Then after you've done that, decide where
  10. you want to make the page go to
  11. automaticly when you click on it. Say i
  12. wanted one to go to the top of a page,
  13. then I'd put in this next code BEFORE all
  14. of my text on the whole page, that way,
  15. it goes to the TOP and nothing else ;)
  16.  
  17. <A name="codeword"></A>
  18.  
  19. After that you may want to test it out and
  20. see how it works!
  21.  
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 2:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC