# minlength

*noun*

say it: **“MIN length”** **/mɪn lɛŋθ/** or **“MIN-ih-mum length”** **/ˈmɪnɪməm lɛŋθ/**

An attribute that sets the fewest characters a typed answer must have before the form will send.

## What is **`minlength`**?

**`minlength`** — The minimum number of characters required for a valid user-entered value.

## In a sentence

- “The password box has **minlength**="12", so a short password is refused.”
- “An empty box passed, even with **minlength**, until I added required too.”

Level: Apprentice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/minlength
