+ 11

Can I code using just css, without linking it to a html document?

28th Jan 2019, 8:34 PM
Frankie
Frankie - avatar
5 ответов
+ 9
Thanks Maneren, am actually feeling stupid now for such a lame question.
28th Jan 2019, 8:46 PM
Frankie
Frankie - avatar
+ 2
No, you can't In css you style html elements with color etc. Without html you have nothing to style at all.
28th Jan 2019, 8:44 PM
Maneren
Maneren - avatar
+ 2
No worries i also have this kind of questions when I was beggining.
28th Jan 2019, 9:06 PM
Maneren
Maneren - avatar
+ 2
Generally you use CSS to make the HTML content more user-attractive than before. You can code it but should be linked definitely, if external CSS file is written.
29th Jan 2019, 7:17 PM
Nishanth
Nishanth - avatar
+ 1
You can write the CSS within your HTML DOC/ page. No need to link a style sheet. However it is best practice when creating a website to have one style sheet linked to every HTML page for all the CSS needed on your website.
5th Feb 2019, 4:47 AM
Daniel D'Antoni
Daniel D'Antoni - avatar