Hướng dẫn form trong html w3schools
An HTML form is used to collect user input. The user input is most often sent to a server for processing. Show The. form elements . The All the different form elements are covered in this chapter: HTML Form Elements. The ElementThe HTML An Here are some examples:
All the different input types are covered in this chapter: HTML Input Types. Text FieldsThe ExampleA form with input fields for text: Try it Yourself » This is how the HTML code above will be displayed in a browser: Note: The form itself is not visible. Also note that the default width of an input field is 20 characters. TheNotice
the use of the The The The The Radio ButtonsThe Radio buttons let a user select ONE of a limited number of choices. ExampleA form with radio buttons: Choose your favorite Web language:
Try it Yourself » This is how the HTML code above will be displayed in a browser: Choose your favorite Web language: HTML CheckboxesThe Checkboxes let a user select ZERO or MORE options of a limited number of choices. ExampleA form with checkboxes: Try it Yourself » This is how the HTML code above will be displayed in a browser: I have a bike The Submit ButtonThe The form-handler is typically a file on the server with a script for processing input data. The form-handler is specified in the form's ExampleA form with a submit button: Try it Yourself » This is how the HTML code above will be displayed in a browser: The Name Attribute forNotice that each input field
must have a If the ExampleThis example will not submit the value of the "First name" input field: Try it Yourself » HTML ExercisesTest Yourself With ExercisesExercise:In the form below, add an input field with the type "button" and the value "OK". <> Start the Exercise |