Reputation: 389
Currently, the HTML code for my logo thus far is...
<div align="center">
<img width='300' height='40' src='/img/logo.png' />
</div>
How would I make it so that if I clicked this image, it would redirect me to the main page?
Thanks
Upvotes: 0
Views: 5946
Reputation: 16263
wrap the img
in an anchor element (a
) and grant it with the href
containing the homepage link.
Upvotes: 2
Reputation: 15616
<div align="center">
<a href="/"><img width='300' height='40' src='/img/logo.png' /></a>
</div>
Upvotes: 6