Home  >  Article  >  Web Front-end  >  How to use html tag

How to use html tag

silencement
silencementOriginal
2019-05-27 11:52:352986browse

How to use html<input> tag

Definition and usage

d5fd7aea971a85678ba271703566ebfd 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>

HTML Differences from XHTML

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

In XHTML, the d5fd7aea971a85678ba271703566ebfd tag must be closed properly

Global attributes

The d5fd7aea971a85678ba271703566ebfd tag supports globals in HTML Attributes.

Event Attributes

Thed5fd7aea971a85678ba271703566ebfd 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!

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