Can i get help?

what does “#” do in this code
<a href= img “#”>click this

The octothorpe, often referred to as a hash symbol, signifies the root fragment, namely the top of the current page. If you were to click that link, the page would scroll to the very top.

In HTML, a page fragment is any element in the page with an id attribute.

<div id="history">

</div>

<nav>
    <a href="#history">History</a>
</nav>
1 Like

Thank you for the advice

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.