Where to define CSS ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where to define CSS ?

Where we will define CSS in separate file or in same HTML page? Please explain with detail example.

18th Dec 2018, 9:23 AM
Muzafar Ali
Muzafar Ali - avatar
1 Answer
+ 2
1.If you mean sololearn code playground, you put css codes in CSS tab, and code playground will combine them for you. If you do it on your own, there are two ways. 2. Put your css codes between <style> and </style> and place in your html code 3. Save a separate file and import stylesheet in html head
18th Dec 2018, 9:43 AM
Gordon
Gordon - avatar