<form> Attributes
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.
action
The 'action' attribute defines the URL where form data is sent. If omitted, the data is sent back to the same page.
method
The 'method' attribute defines how data is submitted: 'get' sends data in the URL, while 'post' does so more securely in the background.
target
The 'target' attribute specifies where the response page should open. '_blank' opens it in a new tab or window.
autocomplete
The 'autocomplete' attribute lets browsers suggest previously entered values. It is enabled by default but can be turned off ('off').
novalidate
The 'novalidate' attribute disables the browser's automatic validation. It's useful when you want to handle validation with JavaScript.
✨ Ask Lara — your AI study partner
Unlock personalized learning support. Lara can explain lessons, summarize topics, and answer your study questions — available from the Go plan and above.
Lara helps you learn faster — exclusive to ReadyTools Go, Plus, and Max members.


