Hands On: Moving Styles into a Separate File

In this lesson, we will learn how to move the style part of our HTML code to a dedicated style sheet. Let's begin!

Did you find this helpful?

It is a great thing that you can build up an HTML page to separate style from the content.

But wait a minute!

If you have many styles and dozens of pages, you still may suffer from maintainability issues if you embed the <style> into each HTML page. Just imagine what it means to update a single style setting: you have to change it in each affected page.

Evidently, there is a simple technique to resolve this issue. You can move the content of the <style> section into a separate CSS ...

Get hands-on with 1400+ tech skills courses.