<STYLE> not needed in CSS?


This is in reference to CSS 4 of 17.

Why don’t I need to wrap my CSS document with the STYLE/STYLE keywords?
The exercise had me “Cut the CSS code in between the opening and closing tags and paste it directly in the new file called style.css.” but then I had to delete the STYLE keywords?
Where did they go? After all, I’m not putting a doctype or head into the CSS document, so how does it know what to do?


using <style></style> is known as an internal stylesheet, given the style is within the same document as the html code. Using an external stylesheet (*.css) you use <link> to tell html where the stylesheet is located (href) and what content the file has (rel):

<link href="style.css" rel="stylesheet">

more information: