Name in HTML5 means "name". The name attribute is used to specify the name of the specified element. It is used to identify HTML elements. The syntax is "
"; name Attributes are often used in forms to submit information and can be reused.
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What does name mean in HTML5
The name in HTML5 means "name".
The name attribute is also used to identify HTML elements, but it does not have a unique row. Its value can be reused, for example: radio button
The name attribute is often used in forms. , used to submit information.
The example is as follows:
<html> <body> <form action="demo_form.php" method="get"> First name: <input type="text" name="fname" /><br /> Last name: <input type="text" name="lname" /><br /> <input type="submit" value="Submit" /><br /> </form> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does name mean in HTML5. For more information, please follow other related articles on the PHP Chinese website!