- 1

html5

could someone tell me what is # in this ? <li><a href="#">Home</a></li>

18th Jun 2020, 2:02 PM
Fathima Mahnas
Fathima Mahnas - avatar
4 odpowiedzi
+ 1
# is an example of a link. In this syntax # will not work because it is not a link of a existing website/ webpage. In short, # is a random example of a link.
18th Jun 2020, 2:38 PM
Omkar Kamat
Omkar Kamat - avatar
+ 1
# is not either a dead or a random example of a link. It's a valid value in fact. To tell things simply, the # thing will take you to the place of the page which has the corresponding id. For example, if you have an element with id "about", and an a tag with href value set to "#about", it will scroll your page to the place where the about element is at that moment. I'm not sure, but if I'm correct "#" will scroll you to the top of the page since there are no ids matching
18th Jun 2020, 3:01 PM
Seniru
Seniru - avatar
+ 1
OK, thank you for teaching some thing new.
18th Jun 2020, 3:03 PM
Omkar Kamat
Omkar Kamat - avatar