How to use html tag

silencement
Release: 2019-05-27 11:52:35
Original
3027 people have browsed it

How to use html<input> tag

Definition and usage

tag is used to collect user information.

According to different type attribute values, the input field has many forms. Input fields can be text fields, checkboxes, masked text controls, radio buttons, buttons, etc.

Example

A simple HTML form, including two text input boxes and a submit button:

<form action="form_action.asp" method="get">
  First name: <input type="text" name="fname" />
  Last name: <input type="text" name="lname" />
  <input type="submit" value="Submit" /></form>
Copy after login

HTML Differences from XHTML

In HTML, the tag does not have a closing tag.

In XHTML, the tag must be closed properly

Global attributes

The tag supports globals in HTML Attributes.

Event Attributes

The tag supports event attributes in HTML.

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

Related labels:
source:php.cn
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