In the past, I only knew to use the name attribute of the a tag to jump, but today I realized that I can still use id.
I don't know if there is any other way. The name can be repeated multiple times, and the id can only be used once. Of course, if you do not intend to abide by the norms, it will be fine if you use it several times.
The demo is as follows:
Copy the code