Hands On: Using an Embedded Style Sheet
In this lesson, we will learn how to use an embedded style sheet in our HTML file. Let's begin!
We'll cover the following
In the last exercise, you applied the same exact style attribute to three occurrences of <h1>
and six occurrences of <h2>
.
Think it over: What happens if your customer does not like the peach color used in <h2>
? What if they insist on changing peach to light blue? You need to update each style attribute that belongs to an <h2>
element one-by-one.
You can imagine how much effort it would take with long HTML pages, moreover with websites built of several hundred pages!
Yikes! Luckily, we have a solution to that.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy