Module 5: The Role of ID and Class in CSS

Overview

In this module, students will learn to stylize a group of elements using class and individual elements using id. By now, it is likely that some students have already discovered the need for these techniques. If that's the case, this module provides an opportunity to refer back to those scenarios so students can directly apply the content from these lessons to the needs they've already identified and expressed.

Lesson 1: Understanding ID and Class in CSS

Tips for Delivering This Lesson

Example Output

When this lesson is complete, students will have added id and class attributes to their index.html file.

Lesson 2: Applying ID and Class in CSS

Tips for Delivering This Lesson

Example Output

When this lesson is complete, students will have modified their external CSS file using id and class selectors. The results should be visible throughout their portfolio site, including their index.html file.

Lesson 3: Pseudo-class Selectors in CSS

Tips for Delivering This Lesson

Example Output

When this lesson is complete, students will have added pseudo-class selectors to their external CSS file (:hover, :focus, and :first-letter). The results should be visible in their index.html file.