+ 7
What is the major difference between css and html??
how do they differ and how do they work hand in hand?
9 ответов
+ 13
There are mainly 3 components to build a website:-
[ HTML ]
This represents the page content with various tags. Each combination of tag was known as DOM in the web browser.
[ Cascading Stylesheet / CSS ]
This represents the rule for applying style to the DOM. This can be achieved by with "style" attribute but it's not recommended as it prevent code reuse.
Therefore we write the rules in a separate CSS file and embed it into the page using <link> tag.
[ JavaScript / JS ]
This represents the logic need to be performed within the page using <script> tag to allow interaction or manipulate the DOM. (e.g. what happens after clicking a button, changing the paragraph content & etc.)
In short, both CSS and JS supplement HTML to make it better. 😉
+ 13
@Amirin Well haters gonna hate. I'm just trying to provide an overview for better understanding but perhaps it's too lengthy for the downvoter.
Anyway I'm fine and thank you for your kind support! 😄
P/S: and congrats for your Platinumship too!
+ 11
Why user downvotes @Zephyr Koo's answer. His answer is absolutely correct😓
+ 9
👍👍😁Thanks a lot
+ 8
HTML - language for markup position of the different elements on the html page.
CSS - language for stylishing html markup
+ 6
html definds the data structure.
css is for web page styling.
+ 3
HTML - What you see on the Web page.
CSS - How the HTML looks
+ 3
HTML does the framework of your web page while CSS is responsible for creativity part and making the page look beautiful and professional..
+ 2
HTML is for defining the web pages structure, CSS is used to create the page‘s look and feel. Javascript / JS is for creating functions. And with php, you can execute server-side things