Possible Duplicate:
Can we place `<img>` inside `<h1>` according to web standards?
I would like to add a small image to appear at the end of every H1 header, the easiest way would be to create the image and simply
<h1>Title <img src="image.png" ></h1>
I do not want to use a background image because I want the image to be positioned at the end of the h1 title, which means that it will vary and a background can only be fixed.
Is having an img tag within a header tag invalid code in any html standards?
I ran this through W3 markup validation with HTML5:
<h1>Hello <img src="smiley.gif" alt="Smiley face" height="42" width="42"></h1>
and I get the following error:
Line 1, Column 19: Element head is missing a required instance of child element title.
Anyone know what that means?