+ 3

How to link to same page using <a> tag? In this code

<a href=#name>normal link to click on</a> /*after clicking on link, cursor should be going to where?...... #name? if, yes how to declare name?

12th Mar 2018, 10:51 AM
Jay Jay
Jay Jay - avatar
4 ответов
+ 5
you can link to an id or a class on the same page check this : https://code.sololearn.com/WUtWKMptSs9F/?ref=app
12th Mar 2018, 12:00 PM
Amine Trabelsi
Amine Trabelsi - avatar
+ 3
the cursor should go to "Normal link to click on" then will load to the linked page e.g the page you you currently in is saved as "Home.html" <a href=#default>Home</a> in this case #default means current page.
12th Mar 2018, 11:07 AM
Ronald Mbanjwa
Ronald Mbanjwa - avatar
12th Mar 2018, 11:11 AM
Jay Jay
Jay Jay - avatar
+ 2
here is my doubt! how <a> tag is working
12th Mar 2018, 11:11 AM
Jay Jay
Jay Jay - avatar