โ† All HTML5 Flashcard Decks

HTML5 Forms and Input Types Flashcards

6 cards from real HTML5 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 HTML5 Forms and Input Types flashcards as text
  1. Which HTML5 attribute allows you to validate an input field value against a regular expression?

    Answer: pattern

    The pattern attribute specifies a regular expression that the input's value must match for the form to be valid.

  2. What does the 'novalidate' attribute on a element do?

    Answer: Disables built-in HTML5 form validation

    The novalidate attribute specifies that the form should not be validated when submitted, bypassing HTML5 constraint validation.

  3. Which HTML5 input type is used specifically for entering a URL with format validation?

    Answer: url

    The input type='url' validates that the entered value is a properly formatted URL including the protocol.

  4. What is the element used for in HTML5?

    Answer: Providing a list of predefined options for an input field

    The element contains a set of elements representing autocomplete suggestions for an associated text input.

  5. Which attribute on an element links it to a for autocomplete suggestions?

    Answer: list

    The list attribute on an references the id of a element to provide autocomplete suggestions.

  6. What does the 'min' attribute specify on an HTML5 number input?

    Answer: The minimum acceptable value

    The min attribute sets the minimum value that an input of type number, range, or date will accept during validation.