HTML Form Attributes

Form attributes control how form data is sent.


Common Form Attributes

<form 
  action="submit.php"
  method="post"
  target="_self"
  autocomplete="on">

Attributes Explained

  • action → URL to send data
  • method → GET or POST
  • target → where response opens
  • autocomplete → browser autofill

Important Notes

  • POST is used for sensitive data
  • GET appends data to URL
  • Attributes affect form behavior