• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Forms > Disabled and Read-Only Fields

Disabled and Read-Only Fields

Many of the XHTML 1.0 form elements accept attributes that render the fields they produce as disabled—meaning the field is grayed out—or as read only, which means that the text that initially appears in the field cannot be changed. The disabled attribute takes care of disabling a field and can be used with the following elements:

  • <input />

  • <label>

  • <select>

  • <option>

  • <textarea>

  • <button>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint