I know several ways to set anchor positioning in html, using id positioning, using name positioning, and using js positioning. You can refer to these methods below. I know several ways to set anchor positioning in html, and I would like to share them with you:
1. Use id positioning:
The code is as follows:
锚点1
11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111 11111111111
Such positioning can be targeted at any tag.
2. Use name positioning:
The code is as follows:
The name attribute can only be used to position the a tag, but not other tags such as p. Play a positioning role.
3. Use js positioning
The code is as follows: