This is a heading

As in the previous example, (1) we have floated the image left and given it a right margin, and (2) the text is enclosed in a div and the div is given a background color. As before, when the image is floated, it is taken out of normal flow and no longer affects the height of the div and hence the extent of the background color.

As in the previous example, this is an h2 following the div, but in this case we have applied a clear:left to the h2 so the text will appear underneath the image.