How to save html documents in a CSS file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How to save html documents in a CSS file?

16th Jul 2017, 9:02 PM
Mickey Tokay
Mickey Tokay - avatar
6 Answers
+ 6
You don't. HTML stays in an html document and CSS stays in a css document.
16th Jul 2017, 9:02 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar
+ 3
Did you mean something like that: https://code.sololearn.com/WZPoM6XO4b3G/#css I doesn't know if it will work as standalone css file, but work in special context of code playground... Anyway, I don't know if it's the expected behaviour, but it's the only way I see to embed html inside css ;P However, it can be a tip in few cases ^^
16th Jul 2017, 10:02 PM
visph
visph - avatar
+ 3
<link rel="stylesheet"type="text/css"href="url_to_mystyle.css">
17th Jul 2017, 3:24 PM
visph
visph - avatar
+ 2
@visph WTF? What for, man?😀😀😀
16th Jul 2017, 10:10 PM
Вап
+ 1
Ahh... Why do you want to do this?😯
16th Jul 2017, 9:11 PM
Вап
0
I meant using how do you use the <link> tag to make sure you see the output of the CSS document when you run it?
17th Jul 2017, 3:14 PM
Mickey Tokay
Mickey Tokay - avatar