CSS: Cascading Style Sheets. CSS is what gives every website its design.

FDMa8XGXsAMd5AD.jfif

Source: https://www.w3schools.com/css/css_intro.asp

h1{color:red; font-size:18px;}

Untitled

There are 3 ways to Insert CSS:

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>Hello everyone!</h1>

</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: Red;
}

h1 {
  color: blue;
  margin-left: 20px;
}
</style>
</head>
<body>

<h1>Hello everyone!</h1>

</body>
</html>
<!DOCTYPE html>
<html>
<body>

<h1 style="color:pink;text-align:right;">Hello everyone!</h1>

</body>
</html>

Avoid space between property and the value.

Priority list:

  1. Inline CSS
  2. Internal CSS
  3. External CSS

How to add comment?