The documentation hasn't fully caught up with some of the changes over the last year.
To the best of my knowledge:
- Anything that can be an activity in Runestone should have a label (unless you never want your book to be on Runestone)
* any of the interactive exercise types we interited from Runestone (label goes on the exercise)
* WeBWorK exercises (label on the exercise)
* videos (label on the video element)
- Generated assets: a label should go on <latex-image>, <asymptote>, etc.; these are used for file names
- Any division that becomes its own .html file for the chunking level you're using: chapter, section, frontmatter, backmatter, index, titlepage, colophon
There are some outliers. Right now, WeBWorK exercises are structured as
<exercise label="foo">
<webwork xml:id="bar">
contents....
</webwork>
</exercise>
The label is used for the Runestone database, and the xml:id is used to name the WeBWorK exercise. I'm not sure if this will change at some point.
I have a pull request in to document labels for generated images, but it's on hold because right now this isn't supported for Mermaid.
There are probably other outliers, given the size of PreTeXt.