You’re missing the option:
<h1>
<a href="http://stackoverflow.com">
<img src="logo.png" alt="Stack Overflow" />
</a>
</h1>
title in href and img to h1 is very, very important!
More Related Contents:
- Browser can’t access/find relative resources like CSS, images and links when calling a Servlet which forwards to a JSP
- Margin on child element moves parent element
- Make a div into a link
- CSS force image resize and keep aspect ratio
- CSS Image size, how to fill, but not stretch?
- How to vertically align an image inside a div
- How do I center align horizontal menu?
- How can I resize an image dynamically with CSS as the browser width/height changes?
- Drop shadow for PNG image in CSS
- CSS: Hover one element, effect for multiple elements?
- xHTML/CSS: How to make inner div get 100% width minus another div width
- Bootstrap icons are loaded locally but not when online
- image moves on hover – chrome opacity issue
- CSS Justify text, fill space with dots [duplicate]
- How to put an image in div with CSS?
- Responsive Images with CSS
- For div to extend full height
- html5 vertical spacing issue with
- CSS Parent/Ancestor Selector [duplicate]
- Select inputs and text inputs in HTML – Best way to make equal width?
- Symfony2 – Assetic – load images in CSS
- Why and not taking font-family and font-size from body?
- Define an ‘s src attribute in CSS [duplicate]
- Contain an image within a div?
- How to vertically align an image inside a div
- how to set background image in submit button?
- Why shouldn’t I use position:absolute for positioning everything?
- input type=”image” shows unwanted border in Chrome and broken link in IE7
- Print styles: How to ensure image doesn’t span a page break
- Inner border over images with CSS?