Home >Web Front-end >HTML Tutorial >HTML
HTML ff9c23ada1bcecdd1a0fb5d5a0f18437 Tag
Definition and usage(Recommended learning: HTML introductory tutorial)
ff9c23ada1bcecdd1a0fb5d5a0f18437 tag is used for users Enter to create an HTML form.
Forms can contain input elements, such as text fields, check boxes, radio buttons, submit buttons, etc. Forms can also contain menus, textarea, fieldset, legend and label elements.Forms are used to transmit data to the server.
Tips:
Note: The form element is a block-level element, and lines will break before and after it.Example
<!DOCTYPE html> <html> <body> <form action="/demo/demo_form.asp"> First name:<br> <input type="text" name="firstname" value="Mickey"> <br> Last name:<br> <input type="text" name="lastname" value="Mouse"> <br><br> <input type="submit" value="Submit"> </form> <p>如果您点击提交,表单数据会被发送到名为 demo_form.asp 的页面。</p> </body> </html>
The above is the detailed content of HTML