+ 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...

3rd Jun 2017, 5:29 AM
Himanshu Saroj
Himanshu Saroj - avatar
2 odpowiedzi
+ 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...
3rd Jun 2017, 7:46 AM
Mrinal Bhagabati
Mrinal Bhagabati - avatar
+ 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.
3rd Jun 2017, 7:07 AM
Miska Rantala
Miska Rantala - avatar