tag name.class name : Level Selector « Style Basics « HTML / CSS






tag name.class name

  
<!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">
<head>
<title></title>
<style type="text/css">
p {
 text-indent: 37%;
 line-height: 1em;
}
p span.initcap {
 font-size: 6em;
 line-height: 0.6em;
 font-weight: bold;
}
</style>
</head>

<body>
  <p><span class="initcap">O</span>nline, activity of exchanging ideas     
  is sped up. The distribution of messages from the selling of 
  propaganda to the giving away of disinformation takes place at a
  blindingly fast pace thanks to the state of technology &hellip;</p>
</body>
</html>

   
    
  








Related examples in the same category

1.Set style for paragraph in a blockquote
2.LI under UL which are in a DIV
3.Three level nested for tag names
4.Set anchor in LI under UL which are in a DIV
5.Child vs direct child