"if you encounter any errors in SAP, send me a screenshot at pramod@learntosap.com, and I will help you resolve the issue."

-HTML Form Attributes Tag –

HTML TUTORIALS-

-HTML Form Attributes Tag –

Introduction-

πŸ”ΉHTML form attributes are used to define the behavior and functionality of the <form> element. Here are the most commonly used attributes:..

Trulli Trulli

βœ… 1. action:-


Specifies where to send the form data when the form is submitted.



<form action="/submit-form">
</form>

βœ… 2. method:-


πŸ”Ή Defines the HTTP method used to send form data-

πŸ”Ή get (default): Appends data to the URL.

πŸ”Ή post: Sends data in the body (more secure for sensitive info).



<form method="post">

βœ… 3. enctype:-πŸ‘‡

πŸ”Ή All Specifies how the form data should be encoded when submitting to the servers-

πŸ”Ή application/x-www-form-urlencoded (default)

πŸ”Ή multipart/form-data (for file uploads).

πŸ”Ή text/plain.



<form enctype="multipart/form-data">
</form>

βœ… 4. target:-πŸ‘‡


πŸ”Ή All Specifies where to display the response received after form submission.-

πŸ”Ή _self (default)

πŸ”Ή _blank (new tab)

πŸ”Ή _parent

πŸ”Ή _top



<form target="_blank">
  <!-- Form fields go here -->
</form>

βœ… 5. autocomplete:-πŸ‘‡


πŸ”Ή Toggles browser auto-complete features on form fields-


 <form autocomplete="off"> 

βœ… 6. novalidate:-πŸ‘‡


πŸ”Ή Disables HTML5 validation when submitting the form-


<form novalidate>

βœ… 7. name:-πŸ‘‡


πŸ”ΉGives the form a name for scripting purposes.-



<form name="contactForm">

Live Code Preview


May Be Like Important Link-

-Chart Of Account-OB13

-Define Plant-OX1

-Chart Of Account-OB13

-Define Financial Statement