Skip to main content
Inspiring
March 8, 2020
Answered

Cannot figure out how to create name anchors in DW...

  • March 8, 2020
  • 1 reply
  • 1307 views

I am trying to create a name anchor tag.  I simply want a hyper-link to connect to another section of my website.  This has been incredibly difficult to do!  Something that was once so simple even in DW now feels like trying to crack a code.

I am just reacquainting myself with Dreamweaver (2020) after working with Muse for a  few years.   I understand that the "name anchor" tag in DW is long gone.  But everything I have read to be able to link to a section of my website has not worked.  I'm not even sure if they are called "Name Anchors" anymore.

I'm sure I am doing something wrong, but I don't know what.  Any help would be very much appreciated!

This topic has been closed for replies.
Correct answer Nancy OShea

Named anchors were removed from HTML5 a long time ago.  Simply give your section or container a unique ID and reference it in your link code. 

 

<section id="uniqueID">

CONTENT GOES HERE

</section>

 

<a href="#uniqueID">Link to unique ID on same page</a>

<a href="page_name.html#uniqueID">Link to unique ID on another page</a>

 

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
March 8, 2020

Named anchors were removed from HTML5 a long time ago.  Simply give your section or container a unique ID and reference it in your link code. 

 

<section id="uniqueID">

CONTENT GOES HERE

</section>

 

<a href="#uniqueID">Link to unique ID on same page</a>

<a href="page_name.html#uniqueID">Link to unique ID on another page</a>

 

Nancy O'Shea— Product User & Community Expert
Inspiring
March 8, 2020

Worked like a charm.  It was the path to the other page I was not defining correctly.  Thank you, Nancy!