+ 1
How to link css here?
I'm a begenner, I'm not geting any link of css file here. Please help me telling how can I use css and js with html.🥰
6 Réponses
+ 5
Stylesheets are linked using <link> tag https://www.w3docs.com/learn-html/html-link-tag.html
But for it to work, the stylesheet file must be stored on the cloud. No way local files are usable in SoloLearn app or web.
+ 5
>> You can host your css or js file from other sources and add them by using <link> and < script > tag.
>> You can put your css and js in <style> and < script > tags respectively.
>> In sololearn you can directly add your css or js files in their specific tabs.
For more info ℹ️: [https://betterprogramming.pub/link-css-and-js-files-with-html-file-f848d00b42e8]↗️
+ 3
You can paste the entire css script inside the <style> tag inside the <head>
+ 2
You can paste your CSS into the CSS Tab.
You can paste your JS into the JS tab.
+ 1
If you to link an external css file to html
please link to that css file in html head tag and write the following link:?
<link rel="stylesheet" href="style.css">
Note: in href the style.css is the name of that css file that you gave tha name to that external css file.
0
<link rel="stylesheet" //if css file is in the same folder with html file// href=nameofthefile.css >