When we define a form in HTML, we can set “method” property of form to be either “get” or “post”. When the form property is set as “get”, the form data is set as name/value pairs and is shown in URL. For example: <html> <body> <form id="frm" name="frm" action="target.php" method="get">   First name: <input id="fname"