A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/required below:

required · WebPlatform Docs

required Summary

The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form.

Applies to [HTMLInputElement](/html/elements/input)

## Examples

A required input field

Username: <input type="text" name="username" required>
Notes Remarks

The attribute can be set on text, text area, URL, email, select, checkbox, or radio button elements. It is a Boolean attribute and needs to be specified only on an element. When users hover the mouse over a required field, they’ll see a tool tip stating that it is a required field. The following example shows the validation attribute on a text input field.

Related specifications
HTML5
W3C Recommendation
See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4