Hands On: Using an Embedded Style Sheet
Explore how to replace repetitive inline styles with embedded style sheets in HTML. Learn to create more maintainable web pages by centralizing CSS rules and quickly updating styles like colors and borders for multiple elements.
We'll cover the following...
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 ...