The <form> element has various attributes that define how it behaves, including submission method, destination, and interaction settings. Knowing these is essential for effective and secure forms.
The 'action' attribute defines the URL where form data is sent. If omitted, the data is sent back to the same page.
The 'method' attribute defines how data is submitted: 'get' sends data in the URL, while 'post' does so more securely in the background.
The 'target' attribute specifies where the response page should open. '_blank' opens it in a new tab or window.
The 'autocomplete' attribute lets browsers suggest previously entered values. It is enabled by default but can be turned off ('off').
The 'novalidate' attribute disables the browser's automatic validation. It's useful when you want to handle validation with JavaScript.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.