/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: required

[this page | pdf | back links]

The HTML required attribute indicates whether an <input>, <select> or <textarea> element needs to be filled in before a form is submitted.

 

Valid attribute values (when used with <input>, <select> and <textarea> elements) include:

 

Value

Description

required

Indicates that input box or selection choice must be filled out before the form can be submitted

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile