Behrouz Riahi Behrouz Riahi - 5 months ago 31
HTML Question

How to make the logo in the navbar "clickable"?

This is how I show my logo in the navbar:

<img class="navbar-brand" href="/" src="logo.png" alt="HomePage">

The logo image appears as it is expected except that I can't click it.

What am I doing wrong here?


You should try something like

<a href="/"><img class="navbar-brand" src="logo.png" alt="HomePage"></a>