What is CSS?
CSS stands for Cascading Style Sheets. It controls the appearance of your web pages, including colors, fonts, spacing, and layout.
Example
h1 {
color: blue;
font-family: Arial, sans-serif;
}
p {
font-size: 16px;
line-height: 1.5;
}
This CSS will make all <h1>
headings blue and set the font style.
How to Add CSS
- Inline – Inside the HTML element using the
style
attribute. - Internal – Inside a
<style>
tag in the HTML file. - External – In a separate
.css
file linked in the HTML head.
Next Steps
In Lesson 4, we’ll learn how to add images and links to your site.