if html is used for coding web and html5 is too used? than why we use CSS ? i think CSS play same role of HTML & HTML5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

if html is used for coding web and html5 is too used? than why we use CSS ? i think CSS play same role of HTML & HTML5

is this advanced or any other reason.

20th Oct 2017, 4:17 PM
Wafa Naqvi
Wafa Naqvi - avatar
3 Answers
+ 10
Html - is markup language I.e., structure. CSS - stylesheet I.e., used to style the markup.
20th Oct 2017, 4:20 PM
P R
P R - avatar
+ 1
As @P R already stated, they dont play the same role, but rather have different functionalities. HTML is used to insert the content and structure it in the way you want. Then you use CSS to style this content to make it look good and professional - nobody likes bad-designed websites. You just need it to make your website visually attractive for visitors. Last but not least there is Javascript for the behaviour, e.g. getting user input and performing actions with/on it. In short, usually all three languages come and work together to form a proper website.
20th Oct 2017, 4:38 PM
Shadow
Shadow - avatar
0
If you want to design a professional website in a comfortable way you have to use CSS.
20th Oct 2017, 10:09 PM
Alberth Castillo
Alberth Castillo - avatar