Difference between revisions of "Style rule (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In Cascading Style Sheets, a '''style rule''' is a definition which affects the presentation of HTML. == Example == Say the HTML looks like this: <pre> <body>...</...")
 
(See also)
Line 19: Line 19:
 
== See also ==
 
== See also ==
  
 +
* [[Box model (CSS)]]
 
* [[Cascading Style Sheets]]
 
* [[Cascading Style Sheets]]
 
* [[CSS property]]
 
* [[CSS property]]

Revision as of 11:18, 3 May 2016

In Cascading Style Sheets, a style rule is a definition which affects the presentation of HTML.

Example

Say the HTML looks like this:

<body>...</body>

The style rule below sets the background color for the body of the web page:

<style>
 body { background-color: #cccccc; }
</style>

See also