DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Maps / Dictionaries — Example 51

Quick explanation + ready code for: Maps / Dictionaries.

HTML Maps / Dictionaries Back to examples
Back to language
Syntax: Maps / Dictionaries in HTML. ID: #51

Code

<dl>
  <dt>a</dt><dd>3</dd>
  <dt>b</dt><dd>4</dd>
</dl>

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.