Header 1 alignment : hN « Tags « HTML / CSS






Header 1 alignment

   

<!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" lang="en">
<head>
<title>HTML/XHTML:  &raquo; XHTML Heading Alignment</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<style type="text/css">

  h1.left {text-align: left;}
  h1.center {text-align: center;}
  h1.right {text-align: right;}

</style>

</head>
<body>

<br clear="all" />
<div class="head">Heading Test</div>
<br />
<div class="content">
<h1 class="left">Aligned Left</h1>
<h1 class="center">Aligned Center</h1>
<h1 class="right">Aligned Right</h1>

</div>


</body>
</html>

   
    
    
  








Related examples in the same category

1.H1 inline style
2.H1 float: left;
3.H1 width: 680px;
4.H1 display: block;
5.h1 letter-spacing: 3px;
6.h1 letter-spacing: 5px;
7.h1 {counter-reset: paragraphNumber;}
8.h2 letter-spacing: 5px;
9.HTML heading elements
10.CSS statements for heading styles
11.Heading Test
12.Create a Heading
13.Letter spacing in headings