Displays a submit button (for submitting the form)
Anonymous Quiz
1%
<input type = “text”>
0%
<input type = “radio”>
0%
<input type = “checkbox”>
93%
<input type = “submit”>
5%
<input type = “button”>
Displays a single-line text input field
Anonymous Quiz
98%
<input type = “text”>
1%
<input type = “radio”>
0%
<input type = “checkbox”>
1%
<input type = “submit”>
0%
<input type = “button”>
<label> element is useful for screen-reader users, because the screen-reader will read out loud the label when the user focus on the input element
Anonymous Quiz
96%
T
4%
F
<label> element also help users who have difficulty clicking on very small regions (such as radio buttons or checkboxes) - because when the user clicks the text within the element, it toggles the radio button/checkbox
Anonymous Quiz
92%
T
8%
F
The … attribute of the <label> tag should be equal to the … attribute of the <input> element to bind them together
Anonymous Quiz
23%
id – id
20%
id – for
56%
for – id
1%
for - for
an attribute which is used to reference the element in javascript
Anonymous Quiz
9%
title
3%
width
41%
name
47%
pattern
an attribute which specifies a regular expression that the <input> element’s value is checked against the on form submission
Anonymous Quiz
9%
title
1%
width
24%
name
65%
pattern
is used for input fields that should contain a telephone
Anonymous Quiz
1%
<input type = “password”>
1%
<input type = “search”>
86%
<input type = “tel”>
13%
<input type = ”number”>
is used for search fields (a search field behaves like a regular text field)
Anonymous Quiz
0%
<input type = “password”>
96%
<input type = “search”>
1%
<input type = “tel”>
2%
<input type = ”number”>
defines a numeric input field
Anonymous Quiz
1%
<input type = “password”>
1%
<input type = “search”>
4%
<input type = “tel”>
94%
<input type = ”number”>
in numeric field You can also set restrictions on what numbers are accepted
Anonymous Quiz
97%
T
3%
F
an attribute which specifies the minimum value for an <input> element
Anonymous Quiz
11%
minimum
86%
min
2%
maximum
1%
max
an attribute which specifies the maximum value for an <input> element
Anonymous Quiz
0%
minimum
1%
min
5%
maximum
94%
max
is used for input fields that should contain a date
Anonymous Quiz
91%
<input type = “date”>
9%
<input type = “file”>
defines a file-select field and a "Browse" button for file uploads
Anonymous Quiz
5%
<input type = “date”>
95%
<input type = “file”>