"; the name attribute is often used in forms. Use to submit information, which can also be reused."/> "; the name attribute is often used in forms. Use to submit information, which can also be reused.">

Home  >  Article  >  Web Front-end  >  What does name mean in HTML5

What does name mean in HTML5

WBOY
WBOYOriginal
2021-12-22 10:45:216598browse

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>

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!

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