how can I use anchor ( I guess) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can I use anchor ( I guess)

so I want a code piece to link somewhere in the same page. For example the page : Games xxxxxx video xxxxxx music xxxxxxx . . . . . . Games x x x x video xxx xxx x xxxx x music xxxx x x its all in the same page but on a bar when I click games it should go to detail part in same page

12th May 2022, 5:26 PM
Lalala
Lalala - avatar
1 Answer
+ 3
You can simply use the id of the element in href in order to link to it. https://www.geeksforgeeks.org/how-to-create-links-to-sections-within-the-same-page-in-html/
12th May 2022, 5:46 PM
Lisa
Lisa - avatar