HTML Form in Hindi

Search Posts
1679686582-Default_image_for_courses.jpg

HTML Forms in Hindi


HTML form in Hindi - HTML में form tag का उपयोग user से डाटा collect करने के लिए किया जाता है। इसमें हम form tag और उसके child tags की मदद से एक html में एक form तैयार करते हैं जिसमे यूजर अपना डाटा डालता है और हम इस form की मदद से उसको सर्वर पर save करते हैं।

html forms in hindi chapter में जानेंगे कि form कैसे बनाते हैं। Form create करने के लिए सबसे पहले <form> tag का use करते हैं इस tag के अन्दर अन्य tags का use करते हैं सबसे important tag <input> होता है।


PHP" method="POST" target="_blank">

Simple Example of Forms in Hindi


ऊपर दिए गए form के Example में form tag में action attribute है व label और input field हैं।

Form tag के attributes-

सबसे पहले जानते हैं कि form tag के attribute कौन कौन से होते हैं और उनका उपयोग क्या है।
Action attribute - जब यूजर form को भर कर submit button पर क्लिक करता है तो वह एक फाइल के रूप में action attribute के अन्दर दिए गए address पर जाती है।

Target attribute - जैसा कि इसके पहले HTML Link in hindi वाले chapter में जान चुके हैं कि target attribute का उपयोग किसी link पर क्लिक करने पर पेज कहाँ open होगा उसी तरीके से जब हम form को submit करेंगे तो submit के बाद action में दिया हुआ address कहाँ open करेगा।
इसमें पांच प्रकार के target attribute की value दी जा सकती हैं -
1. _blank
2. _self
3. _parent
4. _top
5. framename(iframe में display होगा)

Method Attribute - HTML के form tag में इसमें 2 टाइप के Method का उपयोग करते हैं -
1. Get Method - अगर आप चाहते हैं कि आप जो डाटा form की मदद से submit कर रहे हैं वो web browser URL address वाली जगह दिखे तो इसके लिए GET Method का उपयोग किया जाता है। कई बार coding में हमें url से value लेने की जरुरत पड़ती है तो इस Method का उपयोग करना पड़ता है।
2. Post Method - इस Method का उपयोग तब किया जाता है जब आप अपने form द्वारा भेजी गयी information को url पर show नहीं करना चाहते।

Autocomplete Attribute - इस attribute का उपयोग form को autofill करने के लिए किया जाता है। अगर आप autocomplete = "on" करते हैं और यूजर के वेब browser में आपकी कुछ इनफार्मेशन पहले से save है तो यूजर का form automatically fill हो जायेगा।


PHP" method="POST" target="_blank">

Example of Form Attributes in Hindi


Author : Read Rife

You May Also Like



Leave a Comment

Please enter your name.
Please enter a valid email.
Please enter your comment.

Comments