ID and Pseudoclass Selectors

Here is a paragraph in the Verdana font, as specified by the rule associated with the selector P. Not terribly interesting, but I am sure you get the idea

Here is a paragraph of CLASS="flub" and ID="foo." This is affected by three rules: note how the rule with the ID-based selector is considered more specific to the P element than the rule with the CLASS-based selector, so that the font is set to Arial italic. This should be be compared with the previous examples of purely class-based selectors.