# Example 5

# Example 5: CSS with ID's

    This document contains the following CSS:

    P {
      color: black;
      background-color: yellow;
    }
    P#reverse {
      color: yellow;
      background-color: black;
    }

    This following paragraph has no ID

This is a paragraph. We should be yellow because there is a style rule indicating that all paragraphs have a background of yellow.

    The following paragraph has ID="reverse"

This is a paragraph. We should be black with yellow text because there is a style rule indicating that this paragraph should have a background of black with yellow text.