HTML Form Input Attributes in Hindi - html में form input elements के साथ कई तरह के attributes का उपयोग कर के आप form में अलग अलग तरह के functions डाल सकते हैं और अपने form को यूजर फ्रेंडली बना सकते हैं।
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 Hindidisabled - इनपुट फील्ड को disable करने के लिए।
required - ऐसी इनपुट फील्ड को यूजर खाली नहीं छोड़ सकता।
checked - Checkbox और Radio Button में पहले से value select कर के देने के लिए।
Autofocus Attribute - जब यूजर form के webpage को open करता है तो टाइपिंग के लिए cursor, automatically उस input field पर रहता है जिसे autofocus किया गया है।
Comments