color: darkred; : color « CSS « HTML / CSS






color: darkred;

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>text-decoration</title>
<style type='text/css'>
body {
    font: 12px sans-serif;
}
.underline, .overline, .line-through, .blink {
    color: darkred;
    background: mistyrose;
}
.underline {
    text-decoration: underline;
}
.overline {
    text-decoration: overline;
}
.line-through {
    text-decoration: line-through;
}
.blink {
    text-decoration: blink;
}
</style>
    </head>
    <body>
        <p>
            <span class='underline'>underline</span>,
            <span class='overline'>overline</span>,
            <span class='line-through'>line-through</span> and
            <span class='blink'>blink</span>.  
            <span class='blink'>blink</span> 
        </p>
    </body>
</html>

   
    
  








Related examples in the same category

1.'color' Example
2.color: rgb(255, 255, 255)
3.color: lime
4.color:black
5.Named colors
6.color: crimson;
7.color: forestgreen;
8.color: darkkhaki;
9.color: green;
10.color: darkslateblue;