SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up how creat links to sections on the same page in HTML?

    Hi Friends
    Plz Guide! about how creat links to sections on the same page in HTML?

  2. #2
    SitePoint Guru kish's Avatar
    Join Date
    Jun 2003
    Location
    UK
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    It's quite simple actually. Have a look here for a decent guide:

    http://www.htmlcodetutorial.com/linking/_A_NAME.html

    Cheers
    Fast Fwd Multimedia
    Web, IT & Cloud Computing Consultancy
    Currently looking for web freelancers. Get in touch!

  3. #3
    SitePoint Enthusiast null101's Avatar
    Join Date
    Apr 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You use <a name=Jump>Anchor text</a>. You can use these anchors on anything; links, images, you name it.

    To make your page jump to this section on the same page, simply reference the name of your anchor:

    <a href="#Jump"><img src="someimage.jpg"></a>
    Scumlabs.com - Free flash games
    Play Super Mario Flash!
    Play Raiden X!

  4. #4
    SitePoint Member js112's Avatar
    Join Date
    Oct 2009
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you should learn some basic html & css knowlege. it's pretty simple

  5. #5
    SitePoint Guru kish's Avatar
    Join Date
    Jun 2003
    Location
    UK
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by js112 View Post
    you should learn some basic html & css knowlege. it's pretty simple
    I guess that's why the OP asked for advice; because they're learning :-)
    Fast Fwd Multimedia
    Web, IT & Cloud Computing Consultancy
    Currently looking for web freelancers. Get in touch!

  6. #6
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    null101 is giving slightly bad advice, the use of named anchors for fragment links has been pushed into the trashcan ages ago, all you need to do is give the element of the page you want to link to an ID (such as ID="articles"), then when you apply the #articles to the URL, it'll jump to the section

  7. #7
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi AlexDawson
    thank you so much for saving my time to waste on wrong guidance. also more thanx for your informative post.

  8. #8
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    used a name anchor <a name="goHere"></a>
    and than make a link to the anchor: <a href="#goHere">link</a>

  9. #9
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    indisain, I really wish you would read threads before posting replies


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •