DSGN53871
WEB DESIGN 1

Cascading Stylesheets

CSS overrides the browser's default settings.

Stylesheets contain rules, composed of selectors and declarations that define how styles will be applied.

A CSS declaration has two parts:

a property ("color") and a value ("red")

The basic syntax of a rule

selector {property 1: value 1; property 2: value: 2}

<style>
td, b {font-family: sansserif; font-size: 13px; color: black;}
.s {font-size: 11px;}
.ss {font-size: 9px;}
.h {font-size: 16px; color: white}
.r {font-size: 11px; color: cc0000}
</style>
	


<< Back


Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan