HTML Form Input Attributes in Hindi

Search Posts
1679686582-Default_image_for_courses.jpg

HTML Form Input Attributes in Hindi


HTML Form Input Attributes in Hindi - html में form input elements के साथ कई तरह के attributes का उपयोग कर के आप form में अलग अलग तरह के functions डाल सकते हैं और अपने form को यूजर फ्रेंडली बना सकते हैं।


Form के Input Elements के साथ कई ऐसे attributes और Input Restrictions (इनपुट प्रतिबंध) का भी उपयोग कर सकते हैं इनकी मदद से input field में Restrictions लगा सकते हैं ताकि जरुरत के अनुसार यूजर से डाटा enter करा सकें। इनमें से कुछ को सबसे आखिरी में लिखा जाता है। input elements के साथ एक या एक से अधिक attributes का use किया जा सकता है जरुरत के हिसाब से।

HTML Form Input Attributes के प्रकार

List Attribute

Height and width Attributes

Step Attribute - विशेष अन्तराल (number intervals) के नंबर के लिए।

Placeholder Attribute - इसकी help से हम यूजर को बताते हैं कि input field में क्या enter करना है। जब किसी text input element में placeholder का use किया जाता है तो इस से उस field में एक text automatically दिखता है पर उसकी कोई value नहीं होती है जब आप वहां टाइप करते हैं तो cursor ले जाते ही placeholder वाला text गायब हो जाता है।

Pattern Attribute - इसकी मदद से आप ये decide कर सकते हैं कि किसी input field में किस टाइप से डाटा input होगा।

Min and Max Attributes - min - Input field में न्यूनतम range decide करने के लिए।
max - इससे input field में enter होने वाली value की अधिकतम range (in number) दे सकते हैं।

Maxlength Attribute - Input field में अधिकतम कितने अक्षर हो सकते हैं। ये range आप दे सकते हैं।

Size Attribute - इसकी मदद से आप input field की width(चौड़ाई) fix कर सकते हैं।

Value Attribute - इसकी help से आप input field में पहले से एक value रख सकते हैं।

Autocomplete Attribute - Form की field को वेब ब्राउज़र में पहले से save डाटा की मदद से automatically fill कराने के लिए। यह <form> और अन्य <input> types जैसे text, search, url, tel, email, password, datepickers, range, and color के साथ उपयोग किया जा सकता है।

Types of HTML Input attibutes Restrictions in Hindi

disabled - इनपुट फील्ड को disable करने के लिए।

required - ऐसी इनपुट फील्ड को यूजर खाली नहीं छोड़ सकता।

checked - Checkbox और Radio Button में पहले से value select कर के देने के लिए।

Autofocus Attribute - जब यूजर form के webpage को open करता है तो टाइपिंग के लिए cursor, automatically उस input field पर रहता है जिसे autofocus किया गया है।


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

Example of HTML Input Element Attributes in Hindi


इनको अच्छे से समझने के लिए editor पर इनमे changes कर के practice जरूर करें।

Author : Read Rife

You May Also Like



Leave a Comment

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

Comments