HTML tag

(*-*)浩
Release: 2019-09-19 16:03:17
Original
2119 people have browsed it

HTML Tag

HTML <form> tag

##All browsers support the tag.


Definition and usage(Recommended learning: HTML introductory tutorial)

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>
Copy after login

The above is the detailed content of HTML tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Previous article:HTML
tag Next article:HTML

tag

Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template