0
Can somebody please explain to me how i can link my css file to my html file when i am using the sololearn code playground
link css to html
3 Answers
+ 2
If you are talking of the css tab in code playground web project, it is already silently linked (as the JS tab) to the html tab as is was linked/embeded at the very end of <head> section...
If you are talking about 'real' external css file, you need to host them anywhere on web, and use the <link> tag with an absolute url path... but it's as well to copy them embeded in <style> tags or in css tab (and more user friendly to give simplest accessible css source than opening the external css file by another less obvious way than read it in sololearn ;)
+ 1
You are not going to be able to link a file on here. Your best bet is to embed your CSS into the header of your HTML(see below).
<head>
<style>
.myclass{text-align:center;}
</style>
</head>
0
thanksđ