For now my books have such a structure:
Code:
<html>
<head>
<title>Author - Book's Title</title>
<meta name="charset" value="utf-8" />
</head>
<style>
<!--
p.dedication {margin-left:60%; font-style:italic; margin-top:10%;}
p.motto {text-align:justify; font-style:italic; margin-left:10%; margin-right:10%; margin-top:10%;}
h1.act {text-align:center; margin-top:10%; margin-bottom:5%;}
p.act_title {text-align:center; font-weight:bold; margin-bottom:5%;}
h2.chapter {text-align:center; margin-top:10%; margin-bottom:5%;}
p.chapters_title {text-align: center; font-weight:bold;margin-bottom:5%;}
p.localization {margin-left: 10%; margin-right: 40%; margin-top:9%; margin-bottom:3%; font-style:italic; font-weight:bold;}
p.text {text-align:justify;}
p.quote {margin-left:10%; margin-right: 10%; font-style:italic;}
p.image {text-align:center;}
img {max-width: 90%; max-height: 90%;}
-->
</style>
<body>
<p class="dedication">Dedication</p>
<p class="motto">Motto</p>
<h1 class="act">Prologue</h1>
<h1 class="act">Act</h1>
<p class="act_title">Act's title</p>
<h2 class="chapter">Chapter</h2>
<p class="chapters_title">Chapter's Title</p>
<p class="localization">Time, <br>Localization etc.</p>
<p class="text">
Chapter's body
<p class="quote">
Quote inside text
</p>
Chapter's body
<p class="image"><img src="image.jpg"></p>
Chapter's body
</p>
<h1 class="act">Epilogue</h1>
</body>
</html>
On web browser it looks exactly like I want. But after conversion to the epub only h1 - h6 are recognized.