HTML/CSS. goto a class?

前端 未结 1 1795
南笙
南笙 2021-01-19 09:17

in HTML you have the possibility, with the tag TOP, to go on the top on the page directly. For this reason I thought that maybe there is also the possibility to click a link

相关标签:
1条回答
  • 2021-01-19 09:36

    Not to a specific class, becuase there can be many elements with the same classname, but with an ID it's possible.

    <!-- Somehwere on your page -->
    <span id="boookmark1"></span>
    
    <!-- Somewhere else on your page -->
    <a href="#bookmark1">Go to bookmark1</a>
    
    0 讨论(0)
提交回复
热议问题