How to Link PowerPoint to an HTML Anchor Tag?

  • Context: HTML/CSS 
  • Thread starter Thread starter noblerare
  • Start date Start date
  • Tags Tags
    Html Tag
Click For Summary

Discussion Overview

The discussion revolves around the challenge of creating a hyperlink in a PowerPoint presentation that correctly links to an anchor tag in an HTML file. Participants explore the syntax and functionality of linking to anchor tags, particularly in the context of PowerPoint and web browsers.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their HTML setup with anchor tags and expresses difficulty in linking to them from PowerPoint.
  • Another participant suggests that the issue may relate to the length of the webpage and how scrolling works with anchor links.
  • A participant proposes that the correct syntax for the hyperlink should include the anchor reference appended to the HTML file name.
  • There is a suggestion that the participant may be editing the link title instead of the actual link address in PowerPoint.
  • One participant confirms that they see the correct link address when hovering over the link but still ends up at the base HTML file without the anchor reference when clicked.
  • Another participant requests the original files to test the issue directly.

Areas of Agreement / Disagreement

Participants express varying views on the potential causes of the issue, with no consensus on the correct solution or the underlying problem. Some suggest syntax issues, while others point to the behavior of PowerPoint or the web browser.

Contextual Notes

There are unresolved questions about the correct syntax for hyperlinks in PowerPoint and how they interact with web browsers, as well as the specific behavior of anchor tags in this context.

noblerare
Messages
49
Reaction score
0
I'm just wondering if anybody here can help with this minor problem.

Say, I have this simple HTML file:

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

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
 
Technology news on Phys.org
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:
<p id="1">This is point 1</p>
<p id="2">This is point 2</p>
but that's probably not your issue.
 
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?
 
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.
 
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:
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?
 
bump ... can anybody help?
 
noblerare said:
bump ... can anybody help?

can you zip the files and upload them here, then I can test
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K