CPSC415A
Web Programming

Assignment 5

CSS Selectors

Create an HTML and CSS file that demonstrate the following:

  1. Using a descendent selector, a child selector, and a sibling selector.

  2. Using the nth-child and hover pseudo-classes.

  3. Using the before or after pseudo-elements to add an image.

  4. Using an image as the background of a div.

Submission

Submit your code on the course Inquire site.