HTML & CSS Courseware

Lesson Objectives: CSS Introduction

This lesson plan outlines the objectives, prerequisites, and exclusions of the lesson teaching students how to apply basic Cascading Style Sheets (CSS) to format and style elements on a web page.

Students will be able to:

Prerequisites

Students should already be familiar with:

Exclusions

Students will not cover:

Lesson Content

What is CSS?

Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML. CSS controls the layout of multiple web pages all at once.

Why Use CSS?

CSS allows you to separate content from design, making it easier to maintain and update your website. It enables you to apply styles consistently across multiple pages.

Basic CSS Syntax

A CSS rule consists of a selector and a declaration block:

selector {
    property: value;
}
        

For example:

h1 {
    color: blue;
    font-size: 24px;
}
        

This changes the color of all <h1> elements to blue and sets their font size to 24 pixels.

hover

CSS Selectors

Selectors are used to target HTML elements. Common selectors include:

CSS Properties

CSS properties define how elements should be styled. Some common properties include:

CSS Lesson

Resources