CSS · CSS Tutorial · Lesson 1
CSS Introduction
What CSS is and why we use it.
CSS is the language we use to style an HTML document. CSS describes how HTML elements should be displayed.
- CSS stands for Cascading Style Sheets
- CSS describes how HTML elements are displayed on screen, paper, or other media
- CSS saves a lot of work — it can control the layout of many pages at once
- External stylesheets are stored in .css files
Example
<style>
body { background-color: lightblue; }
h1 { color: white; text-align: center; }
p { font-family: verdana; font-size: 20px; }
</style>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
Keep reading “CSS Introduction”
Sign up to read the full lesson, try every example in the live editor, and take the 5-question quiz.