Back to learning center
Video

CSS for Beginners

Style your web pages with CSS.
Share
Copy to Clipboard
Table of Contents
Heading h2
Subheading h3

What is CSS?

Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML. CSS controls the layout, colors, fonts, and overall visual appearance of web pages.

CSS Syntax

CSS is made up of selectors and declarations. A selector targets an HTML element, while a declaration defines the style. For example, h1 { color: blue; } changes the color of all <h1> elements to blue.

Common Properties

  • color: Sets the text color.
  • background-color: Sets the background color.
  • font-size: Sets the size of the text.
This is some text inside of a div block.
This is some text inside of a div block.