Lesson Plan: Styling Text and Colors
Objective
By the end of this lesson, students will be able to:
- Change text color, font size, and font family using CSS.
- Set a background color for a webpage.
- Differentiate between inline and external CSS.
Requirements
- Use inline CSS to style a specific word or phrase.
- Apply external CSS rules to the rest of the page for consistent styling.
- Experiment with different color codes and font families.
Click here to gain an understanding of Inline CSS.
Click here to gain an understanding of External CSS.
Example: Applying Inline and External CSS
Here is an example of inline CSS and how it can be used alongside external CSS.
Skills Learned
- CSS Basics
- Using inline vs. external styles
- Text and color styling
Practice Activity
Students will create a small webpage:
- Write a heading with your favorite quote.
- Style the quote using inline CSS (e.g., change the font size and color).
- Set a background color for the page using external CSS.
- Add some additional styled paragraphs about why you like the quote.