9/19/25, 4:39 PM CSS Introduction
Tutorials References Exercises Sign In
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
CSS Introduction
❮ Previous Next ❯
What is CSS?
CSS is the language we use to style a Web page.
CSS stands for Cascading Style Sheets
CSS describes how HTML elements are to be displayed on screen, paper, or in other
media
CSS saves a lot of work. It can control the layout of multiple web pages all at once
External stylesheets are stored in CSS files
CSS Demo - One HTML Page - Multiple Styles!
Here we will show one HTML page displayed with four different stylesheets. Click on the
"Stylesheet 1", "Stylesheet 2", "Stylesheet 3", "Stylesheet 4" links below to see the different
styles:
[Link] 1/6
9/19/25, 4:39 PM CSS Introduction
Tutorials References Exercises Sign In
Welcome to My Homepage
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
Use the menu to select different Stylesheets
Stylesheet 1
Stylesheet 2 Same Page
Different
Stylesheet 3
Stylesheets
Stylesheet 4
This is a demonstration of how different
No Stylesheet stylesheets can change the layout of your
HTML page. You can change the layout of
this page by selecting different stylesheets
in the menu, or by selecting one of the
following links:
Stylesheet1, Stylesheet2, Stylesheet3,
Stylesheet4.
No Styles
This page uses DIV elements to group
different sections of the HTML page. Click
here to see how the page looks like with no
stylesheet:
No Stylesheet.
Side-Bar
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
REMOVE ADS
[Link] 2/6
9/19/25, 4:39 PM CSS Introduction
WhyTutorials
Use CSS?
References Exercises Sign In
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
CSS is used to define styles for your web pages, including the design, layout and variations
in display for different devices and screen sizes.
CSS Example
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
Try it Yourself »
CSS Saves a Lot of Work!
The CSS definitions are normally saved in an external .css file.
With an external stylesheet file, you can change the look of an entire website by changing
just one file!
Video: CSS Introduction
[Link] 3/6
9/19/25, 4:39 PM CSS Introduction
Tutorials References Exercises Sign In
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
❮ Previous Sign in to track progress Next ❯
COLOR PICKER
[Link] 4/6
9/19/25, 4:39 PM CSS Introduction
Tutorials References Exercises Sign In
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
REMOVE ADS
PLUS SPACES
GET CERTIFIED FOR TEACHERS
FOR BUSINESS CONTACT US
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
[Link] 5/6
9/19/25, 4:39 PM CSS Introduction
PHP Reference
Tutorials HTML Colors
References
Java Reference
Exercises Sign In
AngularJS Reference
HTML
CSS jQuery Reference
JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
Top Examples Get Certified
HTML Examples HTML Certificate
CSS Examples CSS Certificate
JavaScript Examples JavaScript Certificate
How To Examples Front End Certificate
SQL Examples SQL Certificate
Python Examples Python Certificate
[Link] Examples PHP Certificate
Bootstrap Examples jQuery Certificate
PHP Examples Java Certificate
Java Examples C++ Certificate
XML Examples C# Certificate
jQuery Examples XML Certificate
FORUM ABOUT ACADEMY
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full
correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and
privacy policy.
Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by [Link].
[Link] 6/6