Is it possible to replace the link rel tag with a <script> tag while working with css scripts in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to replace the link rel tag with a <script> tag while working with css scripts in HTML?

HTML

11th Sep 2018, 9:59 AM
Codebeast**
Codebeast** - avatar
5 Answers
+ 2
thanks y'all,i really appreciate
13th Sep 2018, 2:17 PM
Codebeast**
Codebeast** - avatar
+ 1
The <script> tag is for JavaScript.
11th Sep 2018, 10:23 AM
Janningā­
Janningā­ - avatar
+ 1
CSS has stylesheets not scripts
11th Sep 2018, 10:34 AM
Yash
Yash - avatar
+ 1
Appropriate way to link to your external stylesheet (3rd slide): https://www.sololearn.com/learn/CSS/1079/?ref=app Appropriate way to link to your external scripts (2nd & 3rd slides): https://www.sololearn.com/learn/JavaScript/1206/?ref=app All together: https://code.sololearn.com/W326FKwAKXtN/?ref=app Reminder: If you are trying to implement external stylesheets and scripts through the Code Playground, you will need to use the full URL of the stylesheet or script file (not just the relative file path, which means it needs to be hosted on a server somewhere connected to the Internet, like Dropbox). It's easier to use the additional tabs provided in the Web project, since they are already automatically connected (note that these scripts load at the beginning). ...Not sure if this was the source of confusion.
11th Sep 2018, 10:38 AM
Janningā­
Janningā­ - avatar
+ 1
You can not use <script> for CSS but for JavaScript only. For CSS you use stylesheet.
11th Sep 2018, 11:07 AM
Ugoson Paul
Ugoson Paul - avatar