• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Link that goes to a specific part of another page

Participant ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

I want a link on one html page to go to a certain part of another page. I control both pages. How can I do this? I tried <a name="three"> 3.) </a> and then tried my new URL https://carthagemills.com/work-with-carthage.html#three

but that URL takes me to a 404 page.

Views

312

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 07, 2019 May 07, 2019

The link above works fine for me.

While the "named anchor" is considered an obsolete method for linking to specific content, it will still work, I believe in every browser. The more current method would be to link to HTML ids that are placed within the elements you want to link to....

<div id="flexible">
     all of your content
</div>

<a href="yourpage.html#flexible">Link to flexible</a>

Votes

Translate

Translate
Community Expert ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

LATEST

The link above works fine for me.

While the "named anchor" is considered an obsolete method for linking to specific content, it will still work, I believe in every browser. The more current method would be to link to HTML ids that are placed within the elements you want to link to....

<div id="flexible">
     all of your content
</div>

<a href="yourpage.html#flexible">Link to flexible</a>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines