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>...</...")
(No difference)

Revision as of 10:02, 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