How It Works: Using an Embedded Style Sheet
Explore how embedded style sheets work by defining CSS rules within the HTML <style> element. Learn to apply styles to multiple elements using selectors, which separates page content from design and simplifies updates. This lesson helps you understand the benefits of embedded CSS and prepares you to use external style sheets later.
We'll cover the following...
We'll cover the following...
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 ...