What is HTML action Attribute?

HTML, HTML Attributes , 0 Comments

The action attribute indicates where to send the form data on submitting the form by the user. (e.g. a PHP script that handles the form data).

You can use action attribute on form tag.

Example

<form action="/my_actioon_page.php" method="get">
  Name: <input type="text" name="name">
  <input type="submit" value="Submit">
</form>

Browser Support

Attribute
actionYesYesYesYesYes

Spread the love

Leave a Reply

avatar
  Subscribe  
Notify of