Course Dashboard

Form Attributes

Many of the elements used to define form controls have some of their own specific attributes. However, there is a set of attributes common to all form elements.

autofocus: This Boolean attribute lets you specify that the element should automatically have input focus when the page loads. Only one form-associated element in a document can have this attribute specified.

disabled: This Boolean attribute indicates that the user cannot interact with the element. If this attribute is not specified, the element inherits its setting from the containing element, for example, <fieldset>; if there is no containing element with the disabled attribute set, then the element is enabled.

name: The name of the element; this is submitted with the form data.

value: The element's initial value.