HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML method Attribute

HTML method Attribute

 

 

The method attribute specifies how to send form data. The form data can be sent as URL variables with the method GET or as HTTP post transactions with the method POST.

 

GET Method:-

 

  • Append data in URL.
  • Length is limited.
  • Vulnerable to sensitive information.
  • Useful for smaller things like bookmarks.
  • Non-secure way of transferring data.

 

POST Method:-

 

  • Append data inside HTTP request.
  • Unlimited length.
  • Secure way of transferring data.

 

Used With:-

 

Element Attribute
form method

 

Syntax:-

 

Its syntax is:- < element method="GET|POST" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML