Home >Web Front-end >HTML Tutorial >How to use html 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!