This document should validate as HTML 4.0 at a minimum.

This paragraph has a class of class1. It should have normal text and a yellow background.

This paragraph has a class of CLASS1. It should have italic text and a transparent background.

This paragraph has an ID of id1. It should have normal text and a cyan background.

This paragraph has an ID of ID1. It should have boldface text and a transparent background.