CS174
Chris Pollett
Feb 17, 2016
input:hover {color:red} /* input tag will turn red when mouse over. */ input:focus {color:green} /* when click into input field, it will turn green */
<style type="text/css"> div:first-child b { color:blue } div:before { content:"The following div tag has something to tell you: "; } </style> <div> <b>I'm blue</b> </div> <div> <b>But I'm not</b> </div>
rgb(0, 0, 0) /*decimal */ #C8C8C8 /*hex */
<li style="list-style-image: url(mybullet.png)"> item </li>
body {background-image: url(background.jpg);}