Tuesday, July 15, 2014

Colors in CSS

Color is a problem for the Web for two reasons:

  1. Monitors vary widely
  2. Browsers vary widely
 There is a set of 16 colors that are guaranteed to be displayable by all graphical browsers on all color      monitors
black      000000        green     008000
silver     C0C0C0        lime      00FF00
gray       808080        olive     808000
white      FFFFFF        yellow    FFFF00
maroon     800000        navy      000080
red        FF0000        blue      0000FF
purple     800080        teal      008080
fuchia     FF00FF        aqua      00FFFF
so these are the colors and here's an example oh how to use them :
<html>
<head>
<style type="text/css">
p {
    color:000000; */ for black or any other color you want
   }
</head>
<body>
<p> hello</p>
</body>
 </html>


\\\

No comments:

Post a Comment