when to use pseudo class in css code example Example: pseudo class css .element:nth-child(1) .element:hover .element:visited