CSS Tutorial
CSS Tutorial
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
CSS Tutorial
❮ Home Next ❯
With our online editor, you can edit the CSS, and click on a button to view the result.
CSS Example
body {
background-color: lightblue;
}
h1 {
Tutorials
color:
white; Exercises
text-align: center;
Services Sign Up Log in
}
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
p {
font-family: verdana;
font-size: 20px;
}
Try it Yourself »
CSS Examples
Learn from over 300 examples! With our editor, you can edit the CSS, and click on a button to view the
result.
Go to CSS Examples!
If you have a large screen, the menu will always be present on the left.
If you have a small screen, open the menu by clicking the top menu sign ☰.
CSS Templates
We have created some responsive W3.CSS templates for you to use.
You are free to modify, save, share, and use them in all your projects.
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
CSS Exercises
Many chapters in this tutorial end with an exercise where you can check your level of knowledge.
?
Exercise
Drag and drop the correct property to set a green background color for a
<div> element.
div {
: green;
}
Submit Answer »
See all Exercises
CSS Exercises
Tutorials Services Sign Up Log in
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
CSS Quiz
Test your CSS skills with a quiz.
My Learning
Track your progress with the free "My Learning" program here at W3Schools.
This is an optional feature. You can study at W3Schools without using My Learning.
CSS References
At W3Schools you will find complete CSS references of all properties and selectors with syntax,
examples, browser support, and more.