0

Why css and html in same code page

So Ive Just started css Course right after compliting html. And when i look into other peoples codes their html codes and css codes are seperated from each otheron code playground. But in example in lesson styling is written insite <html> tag Exapmle. Css lesson 2.1

25th Apr 2022, 12:57 AM
Lalala
Lalala - avatar
3 ответов
+ 2
In truth, the company will pick the method you use so learn them both.
25th Apr 2022, 1:27 AM
John Wells
John Wells - avatar
+ 2
You have a choice to use Inline CSS, Embedded CSS or External CSS. For demonstration purposes the first 2 are easier to accomplish. The codes that you see separated are different documents linked together behind the scenes. If you were to do that with out codeplayground you will need 3 different documents. index.html, style.css and script.js.
25th Apr 2022, 2:04 AM
Chris Coder
Chris Coder - avatar
+ 1
Why don't you just read lesson 2.1. This is literally what that lesson is about.
25th Apr 2022, 1:18 AM
Simon Sauter
Simon Sauter - avatar