{"id":9367,"date":"2022-10-06T05:09:07","date_gmt":"2022-10-06T05:09:07","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9367"},"modified":"2022-10-06T05:09:07","modified_gmt":"2022-10-06T05:09:07","slug":"html-action-attribute","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-action-attribute\/","title":{"rendered":"HTML action Attribute"},"content":{"rendered":"\n<p>The HTML&nbsp;action&nbsp;attribute specifies where the form-data should be sent when the form is submitted. Its attribute value (URL) determines where the data must be sent after the form submission. The URL can have the following values:<\/p>\n\n\n\n<ul><li>absolute URL, which refers to another website link.<\/li><li>relative URL, which refers to a file within a webpage.<\/li><\/ul>\n\n\n\n<p>You can use this attribute only on the\u00a0&lt;form>\u00a0element.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-2\">Syntax<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;form action=\"URL\"&gt;&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-attribute-action-span-attribute-4\">Example of the HTML&nbsp;action&nbsp;attribute:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;form action=\"\/form\/submit\"&gt;\n      &lt;label for=\"fname\"&gt;Name&lt;\/label&gt;\n      &lt;input type=\"text\" name=\"FirstName\" id=\"fname\" value=\"Mary\"\/&gt;&lt;br\/&gt;&lt;br\/&gt;\n      &lt;label for=\"lname\"&gt;Surname&lt;\/label&gt;\n      &lt;input type=\"text\" name=\"LastName\"id=\"lname\" value=\"Thomson\"\/&gt;&lt;br\/&gt;&lt;br\/&gt;\n      &lt;input type=\"submit\" value=\"Submit\"\/&gt;\n    &lt;\/form&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The HTML&nbsp;action&nbsp;attribute specifies where the form-data should be sent when the form is submitted. Its attribute value (URL) determines where the data must be sent after the form submission. The URL can have the following values: absolute URL, which refers to another website link. relative URL, which refers to a file within a webpage. You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9367"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9367"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9367\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}