Q1. What does the required attribute do?
The required attribute makes an input field mandatory - form won't submit without it.
Q2. What does maxlength attribute specify?
maxlength limits the maximum number of characters a user can enter in a text field.
Q3. What is the difference between disabled and readonly?
readonly fields can be focused and copied but not edited; disabled fields are completely inactive and not submitted.
Q4. What does the autofocus attribute do?
autofocus automatically focuses on the input field when the page loads.
Q5. What is the pattern attribute used for?
pattern specifies a regular expression that the input value must match for validation.
