Surfaces and display
Key and value list
Facts about one thing as name and value pairs: an invoice, a person, a setting. dl.kui-kv lays them in two columns, and in one column on a phone.
Examples
The facts of an invoice
Wrap each pair in a div; the list stays one grid, so all values line up.
- Invoice
- INV-2026-0142
- Client
- Đorđević d.o.o., Kneza Miloša 12, Kragujevac
- PIB
- 108459627
- Issued
- Amount
- 184 500,00 RSD
- State
- Waiting for payment
HTML
<dl class="kui-kv">
<div><dt>Invoice</dt><dd>INV-2026-0142</dd></div>
<div><dt>Client</dt><dd>Đorđević d.o.o., Kneza Miloša 12, Kragujevac</dd></div>
<div><dt>PIB</dt><dd><span class="kui-mono">108459627</span></dd></div>
<div><dt>Issued</dt><dd><time datetime="2026-11-03">3 November 2026</time></dd></div>
<div><dt>Amount</dt><dd>184 500,00 RSD</dd></div>
<div><dt>State</dt><dd><span class="kui-badge kui-badge--warn">Waiting for payment</span></dd></div>
</dl>
Stacked
--stacked puts each name over its value at every width, for a narrow side panel.
- Account
- RS35 1050 0812 3123 1231 73
- Bank
- AIK Banka a.d. Niš
- Адреса
- Николе Пашића 42, Ниш
HTML
<dl class="kui-kv kui-kv--stacked">
<div><dt>Account</dt><dd><span class="kui-mono">RS35 1050 0812 3123 1231 73</span></dd></div>
<div><dt>Bank</dt><dd>AIK Banka a.d. Niš</dd></div>
<div><dt>Адреса</dt><dd>Николе Пашића 42, Ниш</dd></div>
</dl>
States
Every state
A missing value is a dash with words for screen readers, not an empty cell. A long value wraps anywhere, so an IBAN or a URL does not push the page sideways. A name that is long wraps in its column.
- Missing
- Not given
- Long value
- https://eporezi.purs.gov.rs/user/login.html?redirect=%2Fpodnosenje-poreske-prijave%2Fppdg-1r
- Umsatzsteuer-Identifikationsnummer
- DE813495226
- With an action
- Change the address
HTML
<dl class="kui-kv">
<div><dt>Missing</dt><dd><span aria-hidden="true">–</span><span class="kui-visually-hidden">Not given</span></dd></div>
<div><dt>Long value</dt><dd>https://eporezi.purs.gov.rs/user/login.html?redirect=%2Fpodnosenje-poreske-prijave%2Fppdg-1r</dd></div>
<div><dt>Umsatzsteuer-Identifikationsnummer</dt><dd><span class="kui-mono">DE813495226</span></dd></div>
<div><dt>With an action</dt><dd><a href="#kv-edit">Change the address</a></dd></div>
</dl>
Classes and attributes
dl.kui-kv- The list: names in the first column, values in the second; one column under 640 pixels.
div > dt + dd- One pair; the div keeps the pair together.
--stacked- The name over the value at every width.
Accessibility
- A description list (
<dl>) tells screen readers which name each value belongs to. - Say “not given” in words for a missing value.
- Format numbers, dates and money for the page’s language.
Do and do not
Do
- Keep names short and the same across screens.
- Put the facts people look for first at the top.
- Use the mono face for codes that are read out or copied.
Do not
- Do not use a key and value list to compare several things; use a table.
- Do not put long paragraphs in a value.
- Do not leave a value empty without saying why.