CSS is the Static Approach Whereas JavaScript is the Programmatic Approach.
A style sheet enables the user to control fonts, color, and layouts. They enable web page designers to use standard HTML elements in a variety of new ways. A single style sheet can be used as a template for many web pages. There are two types of style sheets available namely :
- Cascading Style Sheets (CSS)
- JavaScript Style Sheets
CSS is the static approach to specifying style and JavaScript is the programmatic approach. A CSS style sheet is specified as “text/CSS” and the type of JavaScript Style sheet is “text/JavaScript”. Although both types can be used CSS style sheets is the most widely used since almost all browsers support it.
