Last modified on 28 August 2019, at 19:47

Cascading Style Sheets

This is the current revision of Cascading Style Sheets as edited by 1990'sguy (Talk | contribs) at 19:47, 28 August 2019. This URL is a permanent link to this version of this page.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Cascading Style Sheets (CSS) are used with HTML to give a web page designers centralized control over the appearance of each page. CSS rules work best when stored in a stylesheet document, but style rules can also be embedded into a web page (in the header) or used inline (in a tag).


All definitions in CSS are written as

selector {
property: value; 

For example, in order to change the background to red, and the text color to maroon, you would type,

body {
Body is the selector - meaning you want to edit a characteristic of the body in html, background and color are the properties - background refers to the background color and color refers to the text color, and then red and maroon are the given values for those properties.


See also

  • HTML - HyperText Markup Language
  • JavaScript - Primary language for scripting webpages

External links