This is a heading

Here the image is inside of a div. The div has a background color of pink and a width of 100% The div isn't given a height, so it appears the height will be determined by the height of the image which is inside of the div plus whatever additional height results from the fact that only the first line of the text will line up with the bottom of the image. The background color extends to the entire div.

This is an h2 following the div

Revised 3/5/18