Cite: font style and color, background color : cite « Tags « HTML / CSS






Cite: font style and color, background color

  


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>&lt;strong&gt;, &lt;em&gt; and Other Phrase Elements</title>
  <style type="text/css" media="screen">
  
  #divID cite {
    font-style: italic;
    font-weight: bold;
    color: red;
    background-color: #ddd;
    }
  
  </style>
</head>
<body>

<div id="divID">
this is a test. <cite>this is a test. </cite>.
</div>

</body>
</html>

   
  








Related examples in the same category

1.Cite tag
2.'cite' Example