In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "is input marked in pairs in HTML5?". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Input in HTML5 is not a paired tag, it is a single tag with only the opening tag and no closing tag; the input tag is used to specify the input field in which the user can enter data, and the syntax "", depending on the value of the type attribute, the input field has a variety of forms.
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
In HTML, keywords whose tags are surrounded by angle brackets, usually in pairs such as and, are called "double tags". The start and end tags are also known as open and closed tags.
There are also separate tags, such as:
And so on, this is called "single mark".
So is input in HTML5 marked in pairs?
Input is not a paired tag, but a single tag with only the opening tag and no closing tag.
Syntax:
Input fields come in a variety of forms depending on the type property. Input fields can be text fields, check boxes, password fields, radio buttons, buttons, and so on.
The value of the type attribute describes that button defines clickable buttons (usually used with JavaScript to start a script). Checkbox definition check box. Color defines the color picker. Date defines date controls (including year, month, day, not time). Datetime defines date and time controls (including year, month, day, hour, minute, second, fraction of a second, based on the UTC time zone). Datetime-local defines date and time controls (including year, month, day, hour, minute, second, fraction of a second, without time zone). Email defines the fields used for e-mail addresses. File defines file selection fields and "browse." Button for file upload. Hidden defines hidden input fields. Image defines the image as the submit button. Month defines month and year controls (without a time zone). Number defines the fields used to enter numbers. Password defines the password field (the characters in the field are obscured).
Radio
Define radio buttons. Range defines controls (such as slider controls) that are used to enter numbers whose exact values are not important. Reset defines the reset button (resets all form values to default values). Search defines the text field used to enter the search string. Submit defines the submit button. Tel defines the fields used to enter phone numbers. Text defaults. Define a single-line text field (the default width is 20 characters). Time defines the control (without time zone) that is used to enter time. Url defines the fields used to enter URL. Week defines week and year controls (without a time zone).
Example:
I have a bike.
I have a car.
I have a boat.
Choose the color you like:
Birthday (date and time):
This is the end of the content of "is input in HTML5 a paired tag?" Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.