Writing My External CSS

Hello house,

Please can you help to enlightening me on best practices to writing my CSS code.

I try to create one but some of the code isn’t just working. I included the <style></style>. Also, my CSS file is saved as file.css

If your css is in its own file, you need to import it into your html file. You also do not want to use style tags in a .ccs file. That’s an html tag.

1 Like

If you have a .css file, then you can add:

<link rel="stylesheet" type="css/text" href="your_file_name.css">

to the <head></head> section of your html file.