form tag and it's attributes


 






Form tag has two main attributes which is written in inside the braces of the opening tag

1) action

=> it contains the url of the backend where our form will be sent.

2) method

=> there are two value of method attribute namely, "POST" and "GET". It is always advisable to use POST method.

Comments