VOOZH about

URL: https://www.geeksforgeeks.org/html/html-input-disabled-attribute/

⇱ HTML <input> disabled Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <input> disabled Attribute

Last Updated : 25 May, 2026

The disabled attribute is used to make an input element inactive and unclickable. A disabled input field cannot be edited or submitted with the form.

  • Prevents users from interacting with the input element, including editing, clicking, or focusing.
  • Disabled fields are not included when the form data is submitted.
  • It is a boolean attribute and works with form elements like <input>, <button>, and <select>.

Syntax:

<input disabled>
Comment
Article Tags: