+ 1
Hey friends am not sure about CSS and JS .... because in HTML 5 why it used for code .....
CAN ANYONE OF YOU SUGGEST ME WHY IT USED...
2 Respostas
+ 2
CSS and JavaScript each have their own purpose...CSS basically adds the style element to your dull looking HTML page... while inline style can also be defined, but adding a CSS page containing the style rules to your document helps to keep your source code clean...on the other hand JavaScript adds the functionality to static HTML page by changing its contents dynamically...
+ 2
Your code stays way cleaner if you have few codes instead of one. And if you have same kind of pages, you can just add the same css file to them with one line of code. All in all, CSS and JS both give a ton of easier methods to do stuff than HTML, heck, you can't even do everything in HTML.