Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 779 Bytes

File metadata and controls

12 lines (7 loc) · 779 Bytes

Cascading StyleSheets is a declarative language for styling [[HTML]] documents, but it is also commonly used in other, often XML-based, environments, such as [[Gtk]]. CSS describes how different elements in the HTML should be displayed.

CSS is made up of different rulesets, each containing one or more selectors and a declaration block.

The selectors refer to an element inside the HTML via a type of tag, an id, a class, attribute and combinations between these. You can make more complicated selectors using nesting and combinators.

The declaration block is enclosed in curly braces {} and contains one or more declarations. Each declaration consists of a property and a corresponding value, separated by a colon (:).

See also:

  • [[HTML]]
  • [[JavaScript]]