Applying CSS
Let's say that you composed a style sheet, and it's ready to go. How can you apply CSS to your HTML page? There are 3 ways:
- External stylesheet: You add a standalone CSS file from an external resource. This one file can change the look of the entire website.
- Internal stylesheet: You add the
<style>
element in the head section of an HTML file and apply them only to this particular web page. - Inline styling: Inline styling applies unique rules to only one component using the
<style>
attribute.