normal - normal text displays
italic - the text is shown in italics
oblique - the text is tilted
Selector Property Value
Example
Font Size
h1 {font-size:40px;}
h2 {font-size:30px;}
p {font-size:14px;}
Selector Property Value
Example
Type links
•Styling links
•Text Decoration
•Background color
Styling links
a:link {color:#FF0000;}
a:visited {color:#00FF00;}
a:hover {color:#FF00FF;}
a:active {color:#0000FF;}
a:link - a link without visiting
a:visited - a link that has been visited
a:hover - a link when the mouse is over
a:active - a link when clicked
Selector Property Value
Example
Text Decoration
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
Selector Property Value
Example
Background color
a:link {background-color:#B2FF99;}
a:visited {background-color:#FFFF85;}
a:hover {background-color:#FF704D;}
a:active {background-color:#FF704D;}
Selector Property Value
Example
Bonus
Selector Property Value
*{ border: 1px dashed}
Example
Website with examples
http://cssweb.esy.es/CSSm8/index.html
VISIT OUR WEBSITE