Headings: [Skip]

Web-Design Tutorials by Dr Sam

CSS, the Cascade

Menu [Skip]

Pseudo-Classes

Creating Pseudo-Class Styles

Here is a pseudo-class that will cause certain styles to take effect whenever a cursor hovers over an element:

Let's attached it to the anchor element. So, whenever a cursor hovers over an anchor in our document, the :hover styles should take effect.

See that the pseudo-class is formed with a colon: