use of the required attribute in HTML5

By shoaib   Posted on October-19-2022 

use of the required attribute in HTML5

It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation.

Example:

  1. Name: <input type="text" name="name" required>  

By shoaib    19-Oct-2022 Views  108




You may also read following recent articles