Form Elements

novalidate, method, action Attributes

The novalidate attribute tells the form to not validate when submitted. The method attribute indicates how the form will be submitted through HTTP. The two values for the method attribute are "get" and "post". The action attribute indicates the URL that processes the form data. The "get" method attaches the form data to the action URL upon submission, while "post" excludes it.

fieldset and legend Elements

The fieldset element groups multiple inputs and labels together. The legend element provides a caption for the fieldset group.

label Element and How to Use the for and id Attributes

The label element provides a caption for an input. The for and id attributes connects a label with an input. To make this connection, add the id attribute to the input element, then add the for attribute to the label element. The id and for attributes need to have the same value.

Summary

The novalidate attribute removes validation when the form is submitted. The method and action attributes indicate how and where the form data will be sent for processing. The fieldset element groups multiple inputs and labels together. The legend element serves as a caption for the fieldset. The label element serves as a caption for an input. The connection between labels and inputs is made by adding the id attribute to the input element and giving it a value name, then adding the for attribute to the label element and giving it the same value name as the input id attribute.