Darstellung einer Überschrift
bearbeitet vonLieber Gunnar,
> Das Buch als Gesamtes hat einen Titel – der ist `h1`. Jedes Kapitel hat eine Überschrift `h2`.
und wozu benötigt man dann noch das `<title>`{:.language-html}-Element? Ich stelle mir das Buch als HTML-Dokument so vor:
~~~ html
<html>
<head>
<title>Mein Buch</title>
</head>
<body>
<nav>
<h1>TOC</h1>
<ul>
<li>
<a href="#c1">Chapter 1</a>
<ul>
<li><a href="#c1_1">Chapter 1.1</a></li>
</ul>
</li>
<li><a href="#c2">Chapter 2</a></li>
...
</ul>
</nav>
<article id="c1">
<h1>Chapter 1</h1>
<p>...</p>
<section id="c1_1">
<h1>Chapter 1.1</h1>
<p>...</p>
</section>
</article>
<article id="c2">
<h1>Chapter 2</h1>
<p>...</p>
</article>
...
</body>
</html>
~~~
Liebe Grüße
Felix Riesterer