. So whenever we submit the form the URL will be redirected to the web page or resource under the action attribute and along with that, the form data will be submitted. Attributes is most cases they are optional. Name identifies the html tag when the data is sent when the form is submitted. Please use ide.geeksforgeeks.org, When present in “checkbox”, “radio” and “image” it specifies the value associated with the input. It is only applicable on the ordered list. Output: Fill the form. However, it’s okay to write out the attribute name and set it equal to the one option of the value. Supported doctypes. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. Id 2. The value attribute is used differently for different input types: Note: The value attribute cannot be used with This attribute on a