<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <title>Automatische Absatznummerierung - Cascading Style Sheets - Workshop Internet-Pr&auml;senz</title>

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta http-equiv="Content-Language" content="DE" />
 <meta http-equiv="Content-Style-Type" content="text/css" />

 <meta name="description"
  content="&Uuml;bung Automatische Absatznummerierung." />
 <meta name="keywords" content="HTML, Cascading Style Sheet, CSS, Absatznummerierung" />
 <meta name="author" content="Roland Unger" />

 <style type="text/css">
 <!--

  h1:before {
     content: "Kapitel " counter(kapitel) ". ";
     counter-increment: kapitel;     /* Addiere 1 zu kapitel */
     counter-reset: unterkapitel;    /* Setze unterkapitel auf 0 */
  }

  h2:before {
     content: counter(kapitel) "." counter(unterkapitel) " ";
     counter-increment: unterkapitel;
  }

 -->
 </style>
</head>

<body>

<h1>Titel h1</h1>
   <h2>Titel h2</h2>
   <h2>Titel h2</h2>
   <h2>Titel h2</h2>

<h1>Titel h1</h1>
   <h2>Titel h2</h2>
   <h2>Titel h2</h2>
   <h2>Titel h2</h2>

</body>
</html>