" or " formObject.action=URL"."/> " or " formObject.action=URL".">
Home >Web Front-end >Front-end Q&A >What does action mean in html?
action in html means "submission behavior". The action attribute is used to specify where to send form data when submitting a form. You can also set or return the action attribute of the form. The syntax is "
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What is the meaning of action in html
In html, acton means the submission behavior, and the action attribute is used to specify when to submit When forming a form, where to send form data,
The syntax is:
<form action=URL>
You can also set or return the action attribute of the form, the syntax is:
formObject.action=URL
The action attribute is defined Where the data is sent when the form is submitted. The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <form action="demo-form.php"> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> <input type="submit" value="提交"> </form> <p>点击"提交"按钮,表单数据将被发送到服务器上的“demo-form.php”。</p> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does action mean in html?. For more information, please follow other related articles on the PHP Chinese website!