How to use action in html
This article mainly explains "how to use action in html". The content in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use action in html".
Action in html means "submit behavior", and the action attribute is used to specify where to send form data when the form is submitted, or you can set or return the action property of the form with the syntax "" or "formObject.action=URL".
The operating environment of this tutorial: windows10 system, HTML5 version, Dell G3 computer.
In html, acton means submit behavior, and the action attribute is used to specify where to send form data when the form is submitted
The syntax is:
You can also set or return the action property of the form, the syntax is:
FormObject.action=URL
The action attribute defines where the data is sent when the form is submitted. Examples are as follows:
123 First name:
Last name:
Click the submit button and the form data will be sent to "demo-form.php" on the server.
Output result:
Thank you for your reading, the above is the content of "how to use action in html". After the study of this article, I believe you have a deeper understanding of how to use action in html, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!