Skip to content

Commit

Permalink
#58 Add hgroup instruction for title pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslil committed Dec 15, 2023
1 parent 465ac22 commit 5c2e705
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions guidelines/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,16 +540,20 @@ Note that the `linear="no"` attribute must be applied to the `itemref` element i

#### Title Page

Content corresponding to the publication’s full title must be included in an `<h1>` element.
The publication’s title must be included in an `<h1>` element with `class="title"` and `epub:type="title"`.

```html
<h1 epub:type="fulltitle" class="title" id="booktitle">
<h1 epub:type="title" class="title" id="booktitle">Title</h1>
```

Use of the `<span>` element is only required when a subtitle is present. The following attribute usage must be applied to the appropriate `<span>` element:
When a subtitle is present, the title and subtitle are grouped in an `<hgroup>` element:

- `<span epub:type="title">`
- `<span epub:type="subtitle">`
```html
<hgroup>
<h1 epub:type="title" class="title" id="booktitle">Main title</h1>
<p epub:type="subtitle" role="doc-subtitle">Subtitle</p>
</hgroup>
````

#### Parts

Expand Down

0 comments on commit 5c2e705

Please sign in to comment.