Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson

Input Elements:-

                        यह एक empty element है इसका used फॉर्म में एक इनपुट फ़ील्ड provide करने के लिए किया जाता है जहां users डेटा enter कर सकता है एक इनपुट फ़ील्ड में text field, checkbox, radio button आदि हो सकता है।

The INPUT element has the following attributes:
  1. Type:- इस attribute का use type के लिए किया जाता है अर्थात user से किस तरह का input लेना है इसे हम type attribute मे define करते है– text, password, radio button, checkbox, push button, etc.
  2. Name:- इस attribute का use एक particular नाम देने के लिए किया जाता है बाद में इसी नाम को server पर values store करने के लिए use किया जाता है।
  3. Value:- इस attribute से <input> tag पर default value set की जाती है।
  4. Size:- इस attributes की मदद से input field की width को specifies कर सकते है। इसकी value number मे दी जाती है। इसकी default value 20 होती है। Size attributes text, search, tel, url, email, and password इस input types के लिए इस्तेमाल किया जाता है।
  5. Maxlength:- इस attributes की मदद से input field मे maximum कितने characters को allowed करना है ये specified कर सकते है।
  6. Readonly:– इस attribute की मदद से दिया हुआ <input> tag सिर्फ read किया जा सकता है, लेकिन उस पर write नहीं किया जा सकता है।
  7. Disabled:– इस attributes की मदद से input field को disabled किया जाता है।
  8. Placeholder:– इस attribute से <input> और <textarea> element के लिए simple text hint दी जाती है Placeholder attribute input types जैसे की text, search, url, tel, email, and password के साथ work करता है।
  9. Required:- Required Attributes की मदद से input field को अनिवार्य बनाया जाता है। अर्थात इसमें Value अवश्य देनी पड़ती है इसके बिना वह form को submit नहीं कर सकता।
  10. Autofocus:- जब page load होता है तब autofocus attribute की मदद से input field automatically focus रहता है।
  11. autocomplete: इसका value ” on” या ” off” हो सकता है। जब user इनपुट फ़ील्ड में टाइप करना शुरू करता है, तो यह पहले टाइप किए गए टेक्स्ट को predicts करता है।

Input Elements:-

                        It is an empty element specified by <input> tag. It is used to provide an INPUT field in the FORM where user can enter the data. An input field may be a text field, checkbox, radio button etc. INPUT element is always used within the form element.

The INPUT element has the following attributes:
  1. Type:- type attribute is used to determine the field type, of input field in the form. Field type can be one of the – text, password, radio button, checkbox, push button, textarea etc.
  2. Name:- name attribute specifies the name of the field. This name does not appear on the form. It is required for indentification.
  3. Value:- value attribute specifies the text to be display on the field.
  4. Size:- it allow to specify the width of the text input control in terms of characters.
  5. Maxlength:- it allow to specify the maximum number of characters a user can enter into the text box.
  6. Readonly:– With the help of this attribute, the given <input> tag can only be read, but cannot be written on it.
  7. Disabled:– The disabled attribute specifies that the input field is disabled. A disabled input field is unusable and un-clickable, and its value will not be sent when submitting the form.
  8. Placeholder:– With this attribute, simple text hint is given for <input> and <textarea> element. Placeholder attribute works with input types such as text, search, url, tel, email, and password.
  9. Required:- With the help of Required Attributes the input field is made mandatory. That means value has to be given in it, without this he cannot submit the form.
  10. Autofocus:- When the page is loaded, the input field automatically remains in focus with the help of autofocus attribute.
  11. autocomplete: It can have value “on” or “off”. When user starts typing in the input field, it predicts the texts that are typed earlier.
error: Content is protected !!