What is CSS

What is CSS
Remacle Jean-Claude
1 minute
what is

Together with HTML and JavaScript forms CSS the core of the Web technologies.

Cascading Style Sheets (CSS) is a declarative language that tells the browser how the webpage need to look like by declaring styles to selected elements to display them as you like. The browser then applies these CSS style declarations.

Style declaration

A style declaration contains the properties and their values.

/* The "h1" selector indicates that all header ones in the document will be affected by this rule */
    /* The "font-size" property defines the font size, in this case 50px. */
    font-size: 50px;

   /* The "color" property defines the color, in this case red. */
   color: red;

CSS rule

A CSS rule is a list of properties associated with the selector.

Is CSS only for HTML elements?

CSS is mostly used for styling HTML element but is also can be used with other markup languages such as SVG or XML.