Using Input Validation

Description

HTML5 introduces support for input validation. You manage input validation through attributes.

The following list shows which elements and input types support the different validation attributes.

  • Validation Attribute: required
    Elements: textarea, select, input (the text, password, checkbox, radio, file, datetime, datetime-local, date, month, time, week, number, email, url, search, and tel types)
  • Validation Attribute: min, max
    Elements: input (the datetime, datetime-local, date, month, time, week, number, and range types)
  • Validation Attribute: pattern
    Elements: input (the text, password, email, url, search, and tel types)




















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed