External style sheets
Technically you could write CSS right inside an HTML element using the style="" attribute:
<p style="padding: 100px;">Our mission is to...</p>
As we've seen, it's much more re-usable to define classes. And even better than putting those classes in a <style>
element within the same HTML document is to put them in an external style sheet.
Create a file ending in .css and then add a <link>
element to the HTML file to connect it:
<link rel="stylesheet" href="/my_styles.css">
Now you can easily re-use your rules across all the pages in your site.