Home
HTML
HTML Input attributes
Tryit: The readonly attribute
Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Save Code
Ctrl+Alt+A
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
The input readonly attribute
The readonly attribute specifies that an input field should be read-only (cannot be changed):
First name:
Last name: