Complete the code to create a form that sends data when submitted.
<form [1]> <input type="text" name="username"> <button type="submit">Send</button> </form>
method instead of action for the URL.action attribute entirely.The action attribute tells the form where to send the data when submitted.
Complete the code to specify the HTTP method used to send form data.
<form action="/submit" [1]> <input type="email" name="email"> <button type="submit">Send</button> </form>
action instead of method for HTTP method.The method attribute defines how the form data is sent. post sends data securely.
Fix the error in the form code to correctly submit data.
<form action="/submit" method=[1]> <input type="text" name="name"> <button type="submit">Send</button> </form>
The method attribute value must be in quotes, like "post".
Fill both blanks to create a form that sends data using POST to '/send'.
<form [1] [2]> <input type="text" name="user"> <button type="submit">Submit</button> </form>
action.method="get" instead of post.The action attribute sets the URL, and method="post" sends data securely.
Fill all three blanks to create a form with a text input named 'email', sending data via POST to '/register'.
<form [1] [2]> <input type=[3] name="email"> <button type="submit">Register</button> </form>
action.method="get" instead of post.The form sends data to /register using POST. The input type is text for typing email.
