CSS Tutorial

CSS, or Cascading Style Sheets, is a language that defines how HTML elements look on a web page. CSS can also be used to define a page layout and the visual positioning of those elements.

Table of Contents

This CSS tutorial includes the following topics and exercises:

CSS tutorial overview

In this CSS tutorial, we will cover the following topics:

  • What is CSS?
  • How CSS is included or referenced in an HTML page?
  • How to work with CSS selectors?
  • How to declare and use CSS predefined properties and their values?
  • How to declare and work with ID and class selectors?
  • How to work with basic CSS properties such as fonts, colors, padding, margins, and more?
  • How to use CSS to specify a layout?
  • Other CSS topics such as animations and more.

CSS exercises

After every few chapters, we provide solved HTML + CSS source code exercises to practice the learned material.