In the last lesson we learned about the various ways of loading CSS into an HTML document. In this exercise, why didn’t we use inline styles or the `<style>` tags to load the CSS?


#1

Question

In the last lesson we learned about the various ways of loading CSS into an HTML document. In this exercise, why didn’t we use inline styles or the <style> tags to load the CSS?

Answer

As developers we want to “separate our concerns” because this usually creates codebases that are more flexible, readable, and maintainable. As such, keeping our CSS contained within a separate .css file is the preferred way of including CSS within most projects.

For a deeper dive into some of the nuances here, take a look at this article.


FAQ: Learn CSS Selectors Visual Rules - CSS Visual Rules - Introduction To Visual Rules
#2

There is no article linked though. Could you add it? thanks


#3

Article link please?