Behrouz Riahi Behrouz Riahi - 19 days ago 7
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?

Answer

You should try something like

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