Let's say I'm writing markup to describe a book with a few lines of details, for example:
A Tale of Two Cities
- Author: Charles Dickens
- Year published: 1859
- Genre: Historical Fiction
- Average Review: 3.8/5
Here's the catch: Even though I've formatted it as a list in the example, it's not semantically a list. Also, many of these fields will be user-configurable, so the markup to books, authorship, and time don't really apply. Do I use <p>
, <li>
, <dl>
, <div>
or something else for each of these lines? If I don't fall back to <div>
, the <p>
tag seems the closest to what I want, even though it's not a complete paragraph of text.
What's the right tag for these non-list, not-quite-paragraph items whose keys and values I won't know until runtime?