This article introduces you to the introduction of HTML forms, tables and media elements. It has a good reference value and I hope it can help friends in need.
Form tag form:
//Equivalent to a list that records user information Common attributes: method: form submission method, there are two commonly used values (1) Post: Security Submission method (2) Get: non -security submission method Example: & lt; form method = "post" & gt; & lt;/from & gt: Where to go Example: The form contains the form element inout tag, which is used to allow users to input content It should be noted that form elements should be written between form tags, not outside the form Commonly used form elements: (1): Text box, where content can be input Form elements can also set the default value value attribute: value="123" (2) : Password box, the input content will be hidden The element must set the name attribute, which is used to identify the name of the form element (3): Submit button, the form will be submitted after clicking it The form element sets what type of input box or button it is through type (4): Reset button, clicking it will make the input box in the form return To the initial state (5): Radio button, You can only select one radio button in the same group, use name To group, for example, gender: names are both sex. If the name values are different, it means they are not in the same group. When submitting, the value is submitted, (6) Multiple selection boxes, grouped by name, can be multiple-selected, submitted The value is submitted at the time PS: Radio buttons and multi-select buttons can set the default selected items by setting the checked attribute (7)
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn