Lesson 1 of 8
What is CSS?
CSS stands for Cascading Style Sheets. It controls how HTML elements look — colors, fonts, spacing, layout, and animations.
Think of HTML as the skeleton and CSS as the skin and clothes. Without CSS, every website would look like plain text.
You can write CSS in three ways: inline (inside tags), internal (inside <style>), or external (a .css file linked in <head>).
CSS
/* External CSS file: styles.css */
body {
background: #f5f5f5;
font-family: Arial, sans-serif;
}
h1 {
color: #333;
font-size: 28px;
}