Chapter 6 Flashcards
Which attribute enhances usability in modern browsers?
placeholder
Which type value for the input element triggers validation in modern browsers?
number
document.getElementsByTagName(“form”)[0], you could use the code
document.forms[0]
Use of the ____ attribute of the form element is not allowed in the strict DTD for XHTML.
name
Many aspects of the way browsers present browser-based validation feedback are customizable through the properties and methods of the ____.
constraint validation API
In modern browsers, which attribute of an input element prevents the form from being submitted if the field is left blank?
required
Displays a validation error in a modern browser
bubble
Reduce the likelihood of user errors when completing a form
assistive functions
Enables customization of validation feedback in modern browsers
constraint validation API
Persistence required for a user to accomplish a goal
friction
Determines whether a value is not a number
isNaN() function
Checking that information provided by users conforms to rules
validation
Provides guidance about what data should be entered in a text box
placeholder
If all its properties are false, then its value is true
validity object
Stops a form from being submitted when the submit event is triggered
preventDefault()