How to use HTML # anchor in a dynamic url

后端 未结 3 542
后悔当初
后悔当初 2020-12-17 00:35

I want to link to a section of a dynamic page using the # anchor, something like this:

LINK
3条回答
  •  天涯浪人
    2020-12-17 01:39

    A typical anchor tag works as follows:

    a href link tag is written like so:

    Jump to a001
    

    See the #a001 above? That is referencing an id in the html page, it will jump to it if you click this link.

    To provide an example of how this id that we would jump to might look in a page look below.

  • text here
  • reference

提交回复
热议问题