html5 | Sololearn: Learn to code for FREE!

-1

html5

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

6/18/2020 2:02:07 PM

Fathima Mahnas

4 Answers

New Answer

+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.

+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

+1

OK, thank you for teaching some thing new.