Great job! You learned how to link an HTML file and a CSS file together.
Let's review what you've learned so far:
1. HTML and CSS are kept in separate files in order to keep code maintainable and readable, as well as keep structure separate from styling.
<style> element allows you to write CSS code within an HTML file.
3. A CSS stylesheet can be linked to an HTML file using the
<link> element, which requires three attributes:
href - set equal to the path of the CSS file.
type - set equal to
rel - set equal to
In this lesson, you learned about the two different places in which you can write CSS code, but you didn't write any CSS code at all.
In the next lesson, you'll learn about the basic structure and syntax of CSS so that you can start using CSS on your own.