Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML Anchor Tag and PowerPoint

  1. Jul 6, 2009 #1
    I'm just wondering if anybody here can help with this minor problem.

    Say, I have this simple HTML file:

    <a name=1>This is point 1</a>
    <a name=2>This is point 2</a>

    I want to create a PowerPoint hyperlink that links to an anchor tag in my HTML file. When I create the hyperlink, I browse the path to my html file and add on a "#2" (without quotes) at the end of the hyperlink, (say, if I wanted the link to link the second anchor tag). However, this does not work. I have tried putting quotes around the 1 and 2 in the anchor tag.

    I simply just want to create a hyperlink in my PowerPoint presentation that will link to an anchor tag in an html file.

    Can anyone help me on this? Thanks
  2. jcsd
  3. Jul 6, 2009 #2


    User Avatar
    Science Advisor
    Homework Helper

    How do you know it's not working? With a document that short you wouldn't be able to tell.

    To really do this right you should write
    Code (Text):
    <p id="1">This is point 1</p>
    <p id="2">This is point 2</p>
    but that's probably not your issue.
  4. Jul 6, 2009 #3
    As CRG mentioned, link anchors kinda depend on the length of your website. If your website doesn't span further than one page fold then it can't move up or down since there is nothing to scroll. Does that make sense? Perhaps that is your problem?
  5. Jul 6, 2009 #4
    Thanks for the responses.

    My actual webpage is many pages long so I don't think the problem is with the actual anchor tags. My problem resides in my creation of a PowerPoint hyperlink that links to an anchor tag in my HTML file.

    When I want to create a hyperlink, I browse to the path of where my HTML file lies and then I add, say, #2, if I want the link to go to the second anchor tag. Is this the correct syntax? When I create the hyperlink, I add the #2 at the end and test it out. It opens a browser window as it should but in the address bar, there is just the HTML file, not the #2 at the end.

    For example, I want to link to index.html. So in PowerPoint, I browse to path and put: index.html#2. Then I click on the link in my PowerPoint slide and it opens up a browser window. In the address bar, is the path with simply: index.html at the end; the #2 part is missing. I am wondering if this is the correct syntax or if I am doing something wrong.
  6. Jul 6, 2009 #5
    Perhaps you are editing the link title and not the actual link address?

    For example:

    <a href="link.html">link.html#2</a>
    Last edited: Jul 6, 2009
  7. Jul 6, 2009 #6
    I understand what you are asking but no, I don't believe I'm editing the link title.

    When I view my slideshow in Microsoft PowerPoint, I position my cursor over the link itself (without clicking) and I see that the link points to "link.html#2" However, when I actually click the link, it takes me to a page, link.html.

    Can anybody try this on their home computers to see what I am doing wrong?
  8. Jul 17, 2009 #7
    bump ... can anybody help?
  9. Jul 17, 2009 #8
    can you zip the files and upload them here, then I can test
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook