What does <a href="#">Click here</a> mean? [closed]
What does <a href="#">Click here</a>
mean?
It means "Render a hyperlink that takes the visitor to the top of the page and label it with the, distinctly uninformative, text Click here"
<a href="#Bookmark1" target="frame1">
Link text that leads to Bookmark1 in the current document
</a>
<a href="http://www.foo.com/index.html#Bookmark1" target="frame1">
Link text that leads to Bookmark1 in index.html at www.foo.com
</a>
If no Bookmark is specified in the HREF statement, the browser will default to the top of the document.
From Hyperlink [A Href]
The # of the link Click here is link to the top of the current page. But these kind of # links are often also used for links that are generated by JavaScript. With modern JavaScript library like YUI and JQuery it is no longer needed to explicitly add an "onClick" attribute to the html, see for example the JQUery API: click.
精彩评论