use of the required attribute in HTML5

By Shoaib Khan   Posted on October-19-2022   333


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


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

By Shoaib Khan    19-Oct-2022 Views  333

You may also read following recent articles