---
id: html-input-attributes
title: "HTML Input Attributes"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["input attributes", "input element attributes", "form input attributes", "value attribute", "required attribute"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.90
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["html", "web", "frontend", "forms", "input", "w3schools"]
raw_sources: ["https://www.w3schools.com/html/html_form_attributes.asp"]
applied_in: []
github_commit: ""
---
# [[HTML Input Attributes]]
## π― ν μ€ ν΅μ°° (One-line insight)
A set of standard attributes β `value`, `readonly`, `disabled`, `size`, `maxlength`, `min`/`max`, `multiple`, `pattern`, `placeholder`, `required`, `step`, `autofocus`, `height`/`width`, `list`, `autocomplete` β refine how an `` field behaves, validates, and presents itself. [S1]
## π§ ν΅μ¬ κ°λ (Core concepts)
- **value** β sets an initial (default) value for the input field. [S1]
- **readonly vs disabled** β `readonly` blocks editing but the value is still selectable, copyable, and submitted; `disabled` makes the field unusable, unclickable, and its value is **not** submitted. [S1]
- **size** β sets the visible width in characters (default 20). [S1]
- **maxlength** β caps the number of characters; the browser gives no feedback when the limit is reached. [S1]
- **min / max** β set the minimum and maximum allowed value for numeric and date/time inputs. [S1]
- **multiple** β allows entering more than one value (works with `email` and `file`). [S1]
- **pattern** β validates the value against a regular expression. [S1]
- **placeholder** β shows a hint inside the field before the user types. [S1]
- **required** β the field must be filled out before submission. [S1]
- **step** β defines the legal number intervals. [S1]
- **autofocus** β focuses the field automatically on page load. [S1]
- **height / width** β set dimensions for ``; recommended to reserve layout space. [S1]
- **list** β references a `