HTML/CSS/Text/cite

Материал из Web эксперт
Перейти к: навигация, поиск

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>



Cite tag

 
<!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" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Citations</title>
</head>
<body>
  <p>Restaurant <cite>Norm Deplume</cite>:</p>
  <blockquote cite="http://e.ru/">
    <p>this is a text.</p>
    <p><cite>FirstName Lastname, November 22, 2006</cite></p>
  </blockquote>
</body>
</html>