What does name mean in HTML5

WBOY
Release: 2021-12-22 10:45:21
Original
6602 people have browsed it

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.

What does name mean in HTML5

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>
Copy after login

Output result:

What does name mean in HTML5

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!

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