HTML Input Element Attribute Tutorials in Hindi – Part 19

HTML Input Element Attribute Tutorials in Hindi - Part 19
HTML Input Element Attribute Tutorials in Hindi - Part 19

इस आर्टिकल में हम आपको HTML Input Element Attribute Tutorials in Hindi – Part 19 के बारे में बता रहे है.

हम input element में कई attribute का इस्तेमाल कर सकते है.
सके बारे में हम आपको नीचे बता रहे है.

Attribute

Attribute

Description

Valueइसका इस्तेमाल किसी input फील्ड की value को initial करने के लिए किया जाता है.
Readonlyजब आपको कोई फील्ड readonly बनाना हो जिसको एडिट ना किया जा सके.
Disabledइसका इस्तेमाल किसी input field को निष्क्रिय करने के लिए किया जाता है.
Sizeइसका इस्तेमाल किसी input field के size को फिक्स करने के लिए किया जाता है.
Maxlengthइसका इस्तेमाल input field में डाटा value को फिक्स करने के लिए किया जाता है.
Autocomplete (available in form element and other element)इसके इस्तेमाल से हम form के डाटा को ऑटो complete करवा सकते है या फिर बंद कर सकते है. इसकी value on और off रखी जाती है. यह form में इस्तेमाल होने वाले attribute को override करता है.
Autofocusइसका इस्तेमाल करके आप form लोड होने पर किस input पर अपना पॉइंटर रखना चाहते है इसके लिए किया जाता है.
Formइसका इस्तेमाल हम किसी form element से बाहर रखे input field को form के साथ attatch करने के लिए करते है.
formaction (available in type submit and image )इसका इस्तेमाल submit button में किया जाता है जब हमने कोई button किसी अलग page पर jump करवा के डाटा सबमिट करवाना होता है.यह form में इस्तेमाल होने वाले attribute को override करता है.
formenctype (available in type submit and image)इसका इस्तेमाल हम तब करते है जब हमें multi part डाटा submit करवाना होता है. यह form में इस्तेमाल होने वाले attribute को override करता है.
formmethod (available in type submit and image)इसका इस्तेमाल किसी डाटा को submit button के हिसाब से GET या POST method के द्वारा send करना है यह define करता है. और यह भी form में इस्तेमाल होने वाले attribute को override करता है.

Attribute

novalidate & formnovalidate (available in form element  & type submit)इसका इस्तेमाल टैब किया जाता है जब हमें सबमिट किया डाटा बिना vaildationk के चाहिए होता है. इसके इस्तेमाल से email इत्यादि type में हम सिंपल text भी डाल कर डाटा को सबमिट कर सकते है.यह form में इस्तेमाल होने वाले attribute को override करता है.
formtarget (available in type submit and image)इसका इस्तेमाल करके हमने अपने सबमिट डाटा के open होने वाले
डॉक्यूमेंट को कहाँ open करवाना है यह define करता है.
Height & Width (use in type image)इसके इस्तेमाल से हम किसी भी input type=”image” की width
और height को सेट कर सकते है.
Listइसके इस्तेमाल input में किया जाता है जो की datalist element
को refer करता है.
Max and Minइसका इस्तेमाल हम किसी input element की maximun और minimum value सेट करने के लिए करते है. इसका इस्तेमाल हम form में DOB के लिए करते है.
Multipleइसका इस्तेमाल हम user से multiple value input करवाने के लिए करते है.
Pattern (regexp)इसका इस्तेमाल हम egular expression के द्वारा user से क्या input
लेना चाहते है इसके लिए करते है.
Placeholderइसके इस्तेमाल user को यह बताने के लिए किया जाता है की हमें
किस प्रकार की input value चाहिए.
Requiredइसका इस्तेमाल करने पर user को उस input field में कोई value
अवश्य देनी होती है इसके बिना user form को सबमिट नही कर सकता.
Stepइसका इस्तेमाल legal number सेट करने के लिए किया जाता है.

इसे भी पढ़े – Mobile Processor क्या होता है और Processor बनाने वाली सबसे बढ़िया कंपनी कौन सी है?

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *