Module lessons (4/4)
Advanced Native Controls: datalist, meter, output & field-sizing
Pair <datalist>, <output>, <progress>, and <meter> semantics with field-sizing: content and :user-valid/:user-invalid states.
What you'll learn in this lesson
- Provide instant native autocomplete suggestions with
<datalist>paired cleanly to an<input>and<label>. - Choose the exact right semantic HTML element among
<progress>,<meter>, and<output>. - Apply
field-sizing: contenton auto-growing<textarea>fields plus polite:has(:user-valid)/:has(:user-invalid)styling.
Overview
Modern HTML already solves common UX requests that once pulled in heavy UI libraries:
Historically, making a <textarea> grow gently as the user types multi-line feedback required brittle JavaScript height calculation on every keystroke. Today one CSS declaration enables intrinsic box expansion cleanly:
Sections covered in this lesson
- 1Native Autocomplete & Calculation Feedback
- 2Auto-Expanding Inputs With
field-sizing: content
Unlock "Advanced Native Controls: datalist, meter, output & field-sizing" and the full Modern HTML & CSS curriculum
Pair <datalist>, <output>, <progress>, and <meter> semantics with field-sizing: content and :user-valid/:user-invalid states.
Unlock all 6 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Modern HTML & CSS plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.