HTML tag

(*-*)浩
(*-*)浩Original
2019-09-19 16:03:172120browse

HTML ff9c23ada1bcecdd1a0fb5d5a0f18437 Tag

HTML <form> tag

##All browsers support the 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 tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:HTML
tagNext article:HTML