H4 font-weight:bold; : Header font « Tags « HTML / CSS






H4 font-weight:bold;

   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<style type='text/css'>

/***** Side Content *****/

#sidecontent
{
  margin:0;
  padding:15px 0 0 0;
  float:right;
  width:164px;
}

#sidecontent ul
{
  color:#333;
  list-style:none;
  padding:0;
  margin:0;
  background:inherit;
}

#sidecontent li
{
  padding: 0.1ex 0;
}

#sidecontent li a
{
  color:#000;
  text-decoration:none;
  font-size:1em;
  display:block;
  padding:8px 20px;
  background:inherit;
}

#sidecontent li a:hover
{
  background:#94CC29;
  color:white;
}

#sidecontent h4
{
  font-size:1em;
  font-weight:bold;
  margin:0;
  padding:10px 0 2px 15px;
}

</style>
<title></title>
</head>
<body>

<div id="sidecontent">
  <h4>H4 Text</h4>
  <ul>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
  </ul>
  <h4>H4 Text</h4>
  <ul>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
  </ul> 
</div>      


</body>
</html>

   
    
    
  








Related examples in the same category

1.'hN' sets the font size
2.h2 font: bold italic 2em Georgia, Times, "Times New Roman", serif;
3.h2 font: bold italic 2em Georgia, Times, "Times New Roman", serif;
4.h2 font-size: 1em;
5.h1 font-family: sans-serif;
6.h2 font-family: sans-serif;
7.h3 font-family: sans-serif;
8.h4 font-family: sans-serif;
9.h5 font-family: sans-serif;
10.h6 font-family: sans-serif;
11.h2 font: bold italic 2em "Helvetica Nue", serif;
12.h1 font-size: 17em;
13.h1, h2 and p are in Times New Roman font
14.h1 and h2 have green text and 22pt font
15.H1 font-family: "Times New Roman";
16.H1 font-size: 24px;
17.H1 font: normal 1.4em verdana, arial, tahoma, sans-serif;
18.h1 font: normal 1.4em verdana, tahoma, arial, sans-serif;
19.h1 font: 170% verdana, "Trebuchet MS", arial, tahoma, sans-serif;
20.h1 font-size: 22pt;
21.h2 font-size: 18pt;
22.H4 font-size:1em;
23.h2 font-size: 130%;
24.h2 font: 130% verdana, "Trebuchet MS", arial, tahoma, sans-serif;