HTML & CSS: Images

Images

This webpage does a nice job of explaining how images work in HTML and CSS. Have a look at it.

You can use the CSS property float to cause an image to display to either the left or the right on a page. You will see float in the example below. It is also possible to clear text from the side of an image by using the clear property; this is also shown in the example below. Note that the final paragraph does not appear beside the image, but below it.

 

 

Exercise