Build a Reading List Page in Plain HTML

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.

1. Plan the page structure

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.

Diagram of a page with a header, a list of three entries and a footer
Figure 1. The page is a header, an ordered list of entries, and a footer.

Each entry is a list item with a title, an author and a status.[1]

2. Write the markup

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 Tip: this small icon is embedded directly in the HTML as a data URI, so it needs no separate file.

3. Track reading status

Use a short, consistent set of status labels. The table shows the three used in this tutorial.

Reading status labels
LabelMeaningExample
QueuedSaved for later, not startedA long article you found today
ReadingStarted and in progressThe book on your nightstand
FinishedRead to the endSomething you would recommend

The illustration below shows a shelf sorted the same way.

Illustration of a shelf with three groups of books
Figure 2. Queued, reading and finished books on one shelf.

4. Review your progress

The chart that belongs here was not saved with the page. A converter should tell you it is missing instead of failing silently:

Bar chart of books finished per month
Figure 3. Books finished per month (this file is intentionally missing).

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.


Notes

  1. The status could also be stored in a data-status attribute for styling. Back to text