knowt logo

\-the action attribute defines the action to be performed when the form is submitted, usually meaning it is sent to a file on the server when the user clicks on the submit button

\-in order for a form’s data to be accessed by the location specified in the action attribute, you must give the text field a name attribute and assign it a value to represent the data being submitted

\-for example:

\-placeholder text is used to give people a hint about what kind of info to enter into an input

\-for example:

\-to prevent a user from submitting your form when required info is missing, you need to add the required attribute to an input element

\-there is no need to set a value to the "required" attribute

\-use the button element to create a clickable button

\-for example

\-the default behavior of clicking a form button without any attributes submits the form to the location specified in the form's action attribute

\-you can use radio buttons for questions where yuou want only one answer out of multiple options

\-label elements are used to help associate the text for an input element with the input element itself

\-for example: makes it so clicking the word cat also selects the corresponding radio button

\-the id attribute is used to identify specific html elements

\-each id attribute’s value must be unique from all other id values for the entire page

\-the action attribute defines the action to be performed when the form is submitted, usually meaning it is sent to a file on the server when the user clicks on the submit button

\-in order for a form’s data to be accessed by the location specified in the action attribute, you must give the text field a name attribute and assign it a value to represent the data being submitted

\-for example:

\-placeholder text is used to give people a hint about what kind of info to enter into an input

\-for example:

\-to prevent a user from submitting your form when required info is missing, you need to add the required attribute to an input element

\-there is no need to set a value to the "required" attribute

\-use the button element to create a clickable button

\-for example

\-the default behavior of clicking a form button without any attributes submits the form to the location specified in the form's action attribute

\-you can use radio buttons for questions where yuou want only one answer out of multiple options

\-label elements are used to help associate the text for an input element with the input element itself

\-for example: makes it so clicking the word cat also selects the corresponding radio button

\-the id attribute is used to identify specific html elements

\-each id attribute’s value must be unique from all other id values for the entire page