+ 1
Is it possible to replace the link rel tag with a <script> tag while working with css scripts in HTML?
HTML
5 Answers
+ 2
thanks y'all,i really appreciate
+ 1
The <script> tag is for JavaScript.
+ 1
CSS has stylesheets not scripts
+ 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.
+ 1
You can not use <script> for CSS but for JavaScript only.
For CSS you use stylesheet.