Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use action in html

Shulou Source: shulou.com Published: 2022-06-02 05:53:06 10月03日 Update

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!

Tags: Forms properties data meaning grammar learning content behavior that is ideas situations buttons tutorials articles more servers environments computers knowledge knowledge points Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Redmi Huawei Xiaomi Microsoft