O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the Color

You can also change the color of the elements on your Web page Image.

Image You can use color names, hexadecimals, or RGB, HSL, RGBA, or HSLA values to define your colors. Note that the a:visited and a:hover colors (#909 and #c3f, respectively) use the abbreviation discussed in the second tip.

body {     color: #909;     font: 100% "Palatino Linotype", Palatino, serif;}h1,h2 {     color: navy;     font: 1.375em "Arial Black", Arial, sans-serif;}h2 {     font-size: .9375em;}p {     font-size: .875em;     line-height: 1.6;}em {     font-weight: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required