ACTUAL EXAM STUDY THIS ONE
min and max
EXAMPLE: <input type="number" min="1" max="5"> - CORRECT ANSWERS-Which attributes
define the minimum or maximum value for an <input> element?
maxlength
EXAMPLE: <input type="text" maxlength="4"> - CORRECT ANSWERS-Which attribute defines
the maximum length of input allowed in an <input> field?
multiple
EXAMPLE: <input type="file" id="files" multiple> - CORRECT ANSWERS-Which attribute allows
the user to enter more than one value in the <input> element?
pattern
EXAMPLE: <input type="text" pattern="[A-Za-z]{3}"> - CORRECT ANSWERS-Which attribute
checks input into the field against a regular expression, which is a pattern of characters for use in
pattern-matching and search-and-replace functions?
placeholder
EXAMPLE: <input type="tel" placeholder="123-45-678"> - CORRECT ANSWERS-Which
attribute provides a hint to the user of the input value expected in the <input> field?
required
, EXAMPLE: <input type="text" required> - CORRECT ANSWERS-Which attribute requires input
in the field before the form can be submitted?
user input validation - CORRECT ANSWERS-What do we call the process that tests data input
to verify whether the input follows a specified format or meets minimum requirements for character
number or type?
inline validation - CORRECT ANSWERS-What do we call the process in which the user input in
each field of a form is validated before the form is submitted?
<input type="text" pattern="[A-Za-z]{3}"> - CORRECT ANSWERS-Which pattern ensures the
user enters a three digit country code?
<input type="text" pattern="\d{1,2}/\d{1,2}/\d{4}"> - CORRECT ANSWERS-Which pattern
ensures the user enters a date formatted as 1/1/2021?
<input type="email" pattern="^.+@.+$"> - CORRECT ANSWERS-Which pattern ensures the
user enters a valid email address?
<input type="text" pattern="-?\d{1,3}\.\d+"> - CORRECT ANSWERS-Which pattern ensures
the user enters latitude/longitude?
<input type="text" pattern="\d+(\.\d{2})?"> - CORRECT ANSWERS-Which pattern ensures the
user enters a price?
<input type="url" pattern="https?://.+"> - CORRECT ANSWERS-Which pattern ensures the
user enters a URL beginning with https?
<input type="radio"> - CORRECT ANSWERS-Which input type displays as round buttons in a
group of mutually exclusive pre-determined choices?
<button type="submit"> - CORRECT ANSWERS-Which HTML element submits a user's
completed form data to the server for processing?