Home
| Colors: |

Disable An HTML Text Input Field

April 2025

Edits Not Allowed

Disabling an <input type="text" /> can be done by adding a disabled attribute:

HTML

<label 
  for="example">Example Text</label>

<input 
  id="example"
  type="text"
  value="alfa bravo charlie"
  disabled
/>

Output

end of line