Choosing the Right Input Type
Which input type should you use in HTML to let users pick a date from a calendar widget?
- type='date'
- type='datetime'
- type='calendar'
- type='textdate'
- type='datapicker'
Understanding the u003Ctextareau003E Element
What is the purpose of the u003Ctextareau003E element in an HTML form?
- To allow users to enter multi-line text
- To display a drop-down menu
- To submit a hidden value
- To let users pick a file
- To show a radio button
Using the 'label' Tag Correctly
Which is the correct way to associate a label with a corresponding input field in HTML?
- u003Clabel for='email'u003EEmail:u003C/labelu003Eu003Cinput id='email' type='email'u003E
- u003Clabel name='email'u003EEmail:u003C/labelu003Eu003Cinput type='email'u003E
- u003Clabel id='email'u003EEmail:u003C/labelu003Eu003Cinput type='email'u003E
- u003Clabel for='email'u003EEmail:u003C/lableu003Eu003Cinput id='email' type='email'u003E
- u003Clable for='email'u003EEmail:u003C/labelu003Eu003Cinput id='email' type='email'u003E
Form Submission Buttons
What is the correct type value to use on a button to submit a form when clicked?
- type='submit'
- type='save'
- type='sent'
- type='button'
- type='submitt'
Grouping Options in a Drop-down
Which HTML element is used to logically group related options inside a u003Cselectu003E drop-down list?
- u003Coptgroupu003E
- u003Coptiongroupu003E
- u003Cgroupu003E
- u003Cblocku003E
- u003Cgrouptagu003E
Prefilling User Input Fields
Which attribute is used to display default text inside an input text field before the user enters anything?
- placeholder
- valueholder
- description
- default
- hint
Limiting Text Length in Input Fields
How can you restrict the maximum number of characters a user can enter in an u003Cinput type='text'u003E field?
- maxlength
- maxchar
- limitlength
- charlimit
- max
Radio Button Grouping
When making a set of radio buttons, what must you do so that only one can be selected at a time?
- Give all radio buttons the same name attribute
- Place them inside a u003Cfieldsetu003E
- Use the same id for each radio button
- Use type='radiogroup'
- Write 'multiple' in the input tag
Checkbox Use in Forms
What is the main difference between checkboxes and radio buttons in HTML forms?
- Checkboxes allow multiple selections; radio buttons allow only one.
- Radio buttons are used for passwords.
- Checkboxes submit form data automatically.
- Radio buttons can display multi-line text.
- Checkboxes only work with u003Cform method='POST'u003E.
Validating Required Fields
Which attribute ensures that a user cannot submit an HTML form unless an input field is filled out?
- required
- mandatory
- mustfill
- obligatory
- need