2. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements External Style Sheets can save a lot of work External Style Sheets are stored in CSS files
8. #para1{ text-align:center; color:red;} .center {text-align:center;}p.center {text-align:center;} Example id/class <p id=“center”></p> <p class=“center”></p> Do NOT start an ID name with a number! It will not work in Mozilla/Firefox. Do NOT start a class name with a number! This is only supported in Internet Explorer.
9. Three Ways to Insert CSS External style sheet<head><link rel="stylesheet" type="text/css" href="mystyle.css" /></head> Internal style sheet<head><style type="text/css">body {background-image:url("images/bg.gif");}</style></head> Inline Styles <p style="color:#000; margin-left:20px;">This is a paragraph.</p>
13. CSS Display and Visibility div.login {visibility:hidden;} div.login {display:none;} display:none means that the the tag in question will not appear on the page at all (although you can still interact with it through the dom). There will be no space allocated for it. Visibility:hidden means the tag is not visible, but space is allocated for it.
18. Pseudo-classes a:link {color:#FF0000;} /* unvisited link */a:visited {color:#00FF00;} /* visited link */a:hover {color:#FF00FF;} /* mouse over link */a:active {color:#0000FF;} /* selected link */