Table of Contents Categories
  Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

Cascading Style Sheets

From Conservapedia - Reading time: 1 min

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

Format[edit]

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 {
background:red;
color:maroon
}
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.

References[edit]

See also[edit]

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

External links[edit]


Licensed under CC BY-SA 3.0 | Source: https://www.conservapedia.com/Cascading_Style_Sheets
33 views | Status: cached on February 15 2023 06:19:45
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF