Set the style for first line of P : p class : Text Attributes HTML CSS TUTORIALS


HTML CSS TUTORIALS » Text Attributes » p class »

 

Set the style for first line of P


 

<html>
<head>
<title>Set the style for first line of <P></title>
<style type="text/css">
  p:first-line {
  font-size: 200%;
  font-weight: bold;
  }
</style>
</head>
<body>
  <h1>Title of Page</h1>
  <p>This is a sample paragraph with a <a href="http://www.navioo.com" class="warning">link</a>. After link. <em class="warning"> in em warning</em>. After em.</p>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Text Attributes
» p class