# Present report metadata with description lists

Canonical: https://githtml.com/guides/metadata-description-lists-html
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Use a description list for related names and values such as owner, environment, and measurement period. Keep each term beside its description in source order, and allow the visual layout to stack on narrow screens. A description list is not a substitute for a data table when readers must compare values across rows.

## Choose the right representation

Report metadata often appears as a row of small cards whose relationships disappear when styling changes. A dl gives the name-value structure a straightforward HTML representation. It also makes a compact opening block possible without turning every label into a heading or inserting punctuation solely for layout.

## Apply the pattern deliberately

Use dt for a term and dd for its associated description. A group can contain more than one term or description when that reflects the information, but simple pairs are easier to maintain. Long owner names or environment labels should wrap naturally instead of being truncated to preserve a decorative grid.

1. Choose concise, stable metadata names that remain understandable outside the visual layout.
2. Keep each term and its description adjacent in the HTML source and reading order.
3. Test the longest value on a narrow screen without clipping, ellipsis, or forced single-line text.

````html
<dl><dt>Environment</dt><dd>Staging</dd><dt>Observation period</dt><dd>23 November 2026</dd></dl>
````

## Make the metadata useful outside its card layout

Start with the questions the report header needs to answer: which environment, which revision, which time period, and who can clarify the result. A decorative label such as Context is less useful than a precise term such as Tested revision. Put the value immediately after its term in source order. If a value is unknown, say so rather than omitting the description and leaving readers to wonder whether the export failed.

A two-column visual layout can be appropriate on a wide page, but the relationships should survive when every pair stacks vertically. Avoid placing all terms in one container and all values in another merely to align their edges. That structure can produce a reading order of every label followed by every value. Keep each association intact, and let long identifiers or team names wrap without covering the next label.

Use the block as a lookup device rather than a miniature dashboard. If you need to compare staging, production, and a test environment across the same measurements, a table with explicit headers is usually clearer. If a description itself contains several paragraphs, consider moving that explanation into a section and leaving a short value or link in the metadata block. A header that expands into a full page makes it harder to reach the report's actual finding.

## Check the finished reading experience

Review whether the block answers a lookup question or a comparison question. If readers need to compare several environments against the same attributes, a table may be more appropriate. A description list works best when each name introduces its own value rather than when position in a matrix carries meaning.

## Sources and further reading

- [MDN: dl](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dl)

## Related guides

- [Move a reading task between iPhone and iPad without losing context](https://githtml.com/guides/move-reading-between-iphone-ipad-without-losing-context)
- [Read technical HTML comfortably on iPad in portrait and landscape](https://githtml.com/guides/read-technical-html-ipad-portrait-landscape)
- [Build a small GitHub document reading queue with favorites and recents](https://githtml.com/guides/favorites-recents-document-reading-queue)
- [Find answers in long HTML reports with better search queries](https://githtml.com/guides/search-long-html-report-with-better-queries)

Editorial approach: https://githtml.com/guides/about
