Premium Features

Download Video

Introduction to CSS

Published 3 years ago

CSS stands for Cascading Style Sheets, it's a language that determines how your HTML elements look on the screen (color, size, etc.).

In order to get started with CSS, you need either an index.html file in which you can add style tags to, or a separate .css file where style tags are not required:

index.html
<style></style>

Inside of these style tags, you can start writing in the CSS syntax. The most standard CSS type you'll use is called a class, an arbitrarily named identifier that can be added to multiple HTML elements for styling purposes.

A CSS class starts with a ., follows with a name, then opening and closing curly brackets:

<style>
.bg-red {

}
</style>

Inside of these curly brackets, you can begin writing CSS properties which determine how your element looks, and how it is positioned on the screen.

You'll learn a bit more about properties in the video and in the following code challenge. As we begin to learn about the most important properties and how they work, we'll continue building your base until you can develop a full, mobile-responsive website on your own.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
d
dshhh posted 3 years ago
1
chris posted 3 years ago
1

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.