17/02/2026
π HTML Form Kya Hota Hai?
Form website ka wo section hota hai jahan user apni information enter karta hai.
Example:
Login form
Contact form
Registration form
πΉ 1οΈβ£ Tag
π Ye poore form ka container hota hai.
Jo bhi input fields hoti hain sab iske andar aati hain.
Socho:
= Form ka box π¦
πΉ 2οΈβ£ Tag
π Ye input field ka naam batata hai.
Jaise: Name, Email, City
Ye user ko batata hai ke niche wali field me kya likhna hai.
πΉ 3οΈβ£ Tag
π Ye user se data lene ke liye hota hai.
Iske different types hote hain:
β
type="text"
Normal text likhne ke liye (Name, City)
β
type="email"
Email likhne ke liye (validation ke sath)
β
type="radio"
Ek option select karne ke liye (Male / Female)
β
type="checkbox"
Multiple options select karne ke liye
πΉ 4οΈβ£ placeholder
π Ye input ke andar halka text show karta hai
Example: "Enter your name"
User ko hint deta hai kya likhna hai.
πΉ 5οΈβ£ name Attribute
π Ye backend ko batata hai ke data kis naam se save hoga.
πΉ 6οΈβ£ Tag
π Dropdown banane ke liye use hota hai.
Jaise: Country choose karna
πΉ 7οΈβ£ Tag
π Dropdown ke andar options dikhane ke liye.
πΉ 8οΈβ£ Tag
π Bara text likhne ke liye
Jaise: Message box
πΉ 9οΈβ£ Tag
π Form submit karne ke liye
Usually βSubmitβ button hota hai.
π― Easy Structure Samajhne Ka Tarika
Form ka flow hota hai:
Label β Field ka naam
Input β User data likhega
Special types β Radio / Checkbox / Dropdown
Textarea β Message
Button β Submit
π‘ Simple Example Real Life Me
Registration Form:
Name (text)
Email (email)
City (text)
Country (dropdown)
Gender (radio)
Interests (checkbox)
Message (textarea)
Submit (button)
Bas itna yaad rakh lo:
π¦ = Container
π· = Field ka naam
β¨ = User likhega
π = Dropdown
π = Bara text
π = Submit