Lesson 2 of 50
cssAdding CSS to a Page
7 mins
Course progress4%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 2 of 50
css7 mins
Keep these ideas in mind as you work through the lesson.
There are three ways to include CSS:
style attribute on an element.<style> block inside <head>.<link rel="stylesheet" href="style.css">.External CSS is the most maintainable and cache‑friendly.
<link rel="stylesheet" href="/css/main.css" />