...

/

How It Works: Using an Embedded Style Sheet

How It Works: Using an Embedded Style Sheet

In this lesson, we will understand how to use an embedded style sheet in our HTML file from the previous exercise. Let's begin!

How it works

In Step 2, you moved the content of style attributes into a style sheet. This is a series of rules within the <style> element in the <head> section (lines 5 - 17). The body (line 6), h1 (line 9), and h2 (line 13 ...