Which is the correct sequence to insert the external css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which is the correct sequence to insert the external css?

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

23rd Apr 2023, 1:08 AM
AMIT SAGAR
AMIT SAGAR - avatar
3 Answers
+ 5
Mirielle are there any drawbacks to using @import? I've read that it could slow down websites, but I've never tested to see if that's actually an issue. I'm providing this resource to help with your suggestion: https://www.w3schools.com/cssref/pr_import_rule.php."
23rd Apr 2023, 5:29 AM
Chris Coder
Chris Coder - avatar
+ 3
if you have multiple css files added using link, the order matters to the cascading. And btw when it comes to linking css files. you can omit the type="text/css" attribute. It is the recommended good practice.
23rd Apr 2023, 1:27 AM
Arturop
Arturop - avatar
0
Simply write up the following in the <head><link rel="stylesheet" href="style.css"/></head>
23rd Apr 2023, 2:39 PM
Sony
Sony - avatar