This sample tutorial checks how a converter handles images, captions, tables, code and footnotes. One image is intentionally missing from the folder so you can see how the image report lists it.
A reading list needs three parts: a heading, a list of entries, and a short note for each entry. The diagram below shows the structure we will build.
Each entry is a list item with a title, an author and a status.[1]
Start with semantic elements. Screen readers and ebook readers both understand lists and headings, so avoid building the list out of generic div elements.
<main>
<h1>Reading list</h1>
<ol class="books">
<li>
<h2>The Lighthouse Ledger</h2>
<p class="meta">M. Calloway ยท <span class="status">Reading</span></p>
</li>
</ol>
</main>
Tip: this small icon is embedded directly in the HTML as a data URI, so it needs no separate file.
Use a short, consistent set of status labels. The table shows the three used in this tutorial.
| Label | Meaning | Example |
|---|---|---|
| Queued | Saved for later, not started | A long article you found today |
| Reading | Started and in progress | The book on your nightstand |
| Finished | Read to the end | Something you would recommend |
The illustration below shows a shelf sorted the same way.
The chart that belongs here was not saved with the page. A converter should tell you it is missing instead of failing silently:
Long code lines should wrap instead of disappearing off the screen:
const summary = books.filter((book) => book.status === 'finished').map((book) => `${book.title} by ${book.author}`).join(', ');
Return to section 1 to compare the plan with the finished page.
data-status attribute for styling. Back to text