I think the problem is with this : href="css/style.css"
try adding ./ before css like that href="./css/style.css", if this doesn’t work, i think the problem is with the path of the file, so try putting the style in the style tags <style>YOUR STYLE GOES HERE</style>
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Anything that works in codepen will work in a browser.
Just because codepen provides the boilerplate for you doesn’t mean the code will not run in a browser. Once you have good code in codepen you can use the export button to export the code to where you want, all the boilerplate items will be in the exported code.
Is your stylesheet actually in a directory called css? If so, you’re calling it correct provided the name of the file is style.css.
Your code is correct so the issue is that you’re not linking to your CSS file correctly.