0

How formaction attribute is used???

I'm sticker at how formaction attribute is used in HTML5 forms. 1. Also it is said that when we use formaction attribute, we can only use type attribute value submit and img. So does we can add image as a link? 2. Does formaction attribute can only used inside input tag? Thanks for your valuable answers!☺️👍

24th Apr 2020, 6:44 AM
Himanshu Rai
Himanshu Rai - avatar
2 Respuestas
+ 1
1. Yes, formaction attribute of input tag only works with image and submit values of the type attribute. 2. It also works with button with type submit You can also use the plain action attribute with a form tag which works with any default submit of the page (button, input) https://www.w3schools.com/tags/att_button_formaction.asp https://www.w3schools.com/tags/att_input_formaction.asp https://www.w3schools.com/tags/att_formaction.asp Image input example, would just need to add formaction attribute. https://www.w3schools.com/tags/att_input_type_image.asp
24th Apr 2020, 8:05 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Thanks for helping:)
24th Apr 2020, 8:09 AM
Himanshu Rai
Himanshu Rai - avatar