What is Other Form Elements?
Input Field के अलावा, HTML Form में Working Capacityऔर Users अनुभव को बढ़ाने के लिए Other Element शामिल हो सकते हैं। यहां कुछ सामान्य Element दिए गए हैं जिनका उपयोग HTML Form के साथ Combination किया जा सकता है
Label Element
- Label Form में होना बेहतर माना जाता है। चूंकि यह Code Parser/Browser/Users को Friendly बनाता है।
- <label> Element कई प्रकार के Elements के लिए एक Label को Define करता है।
- <label> Tag की For Attribute उन्हें एक साथ बाँधने के लिए <input> Element की Name Attribute के बराबर होना चाहिए।
Label Element
Select and Option Element
- <select> Element Drop-down List को Define करता है।
- <option> Element एक option को Define करता है जिसे Select किया जा सकता है।
- Default रूप से, Drop-down List में पहला Item Select हो जाता है।
- Pre-selection Option को Define करने के लिए, Selected Attribute को Option में Add कर देते है ।
Select Element
![HTML Select and Option Element](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Select-and-Option-Element.png)
Textarea Element
- <textarea> Element एक Multi-line Input Field (Text area) को Define करता है।
- Row Attribute Text area में Lines की Visible Number को Specified करती है।
- Cols Attribute Text Area की Visible Width को Specified करती है।
Textarea Element
Textaera Example
![HTML Textarea Element](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Textarea-Element.png)
Button Element
- <button> Element एक Click करने योग्य Button को Define करता है।
Button Element
Button Example
![Form Button Element](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Button-Element.png)
Fieldset and Legend Element
- <fieldset> Element का उपयोग किसी Form में Related Data को Group करने के लिए किया जाता है।
- <legend> Element <fieldset> Element के लिए एक Caption को Define करता है।
Fieldset and Legend Element
Fieldset and Legend Example
![](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Fieldset-and-Legend-Element.png)
Datalist Element
- <datalist>Element <input> Element के लिए Pre-define Options की एक List को Specified करता है।
- Users Data Input करते ही Pre-define Options की एक Drop-down List देखेंगे।
- <input> Element की List Attribute, <datalist> Element की Id Attribute को Refer करनी चाहिए।
Datalist Element
Datalist Example
![HTML Form Datalist Element](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Datalist-Element.png)
Output Element
- <output> Element एक Calculation के Result को Represent करता है (जैसे एक Script द्वारा किया गया)।
Output Element
Output Example
![HTML Form Output Element](https://aiyoit.com/tutorial/wp-content/uploads/2023/07/Output-Element.png)
Optgroup Element
- <optgroup> Element का उपयोग <option> को <select > Element के भीतर एक Drop-down List में Grouping करने के लिए किया जाता है।
- <optgroup> Element का उपयोग <select> के साथ Drop-down List तक पहुंचना आसान बनाता है, खासकर यदि सूची में बड़ी संख्या में Option हैं।
Optgroup Element
Optgroup Example
Facebook
Pinterest
LinkedIn
WhatsApp