# फॉर्म की मूल बातें — एचटीएमएल

Source: https://www.geekswithgeeks.com/hi/html/html-forms-basics

> form टैग, action और method एट्रिब्यूट।

## form टैग

`action` वह जगह है जहाँ डेटा भेजा जाता है; `method` तरीका है — `get` (URL में) या `post` (रिक्वेस्ट बॉडी में)।

```html
<form action="/submit" method="post">
  <input type="text" name="username">
  <button type="submit">Send</button>
</form>
```

## GET बनाम POST

सर्च/फ़िल्टर के लिए `get` उपयोग करें (दिखने वाला, बुकमार्क होने योग्य URL); संवेदनशील या डेटा बदलने वाले कामों के लिए `post` उपयोग करें।
