What are the pseudo-classes for valid and invalid data??
What will be an ideal response?
The valid and invalid pseudo-classes are used to format controls based on whether their field values pass a validation test or not. For example, the following style rule displays all the input elements containing invalid data with a light red background: In put: invalid { background-color: rgb (255, 232, 233); }On the other hand, the following style rule displays all the input elements containing valid data with a light green background: input: valid { background-color: rgb (220, 255, 220); }Both of these style rules set the background color whether theinputelement has the focus or not. Displaying a form full of input backgrounds with different background colors can be confusing and distracting to the user. As a result, it is better practice to highlight invalid field values only when those input controls have the focus, as shown in the following style rule that combines both the focus and invalid pseudo-classes: input:focus:invalid { background-color: rgb (255, 232, 233); }?
You might also like to view...
What is the maximum length of the vertical taut-wire sensor (VTWS)?
a. 150 feet. b. 200 feet. c. 328 feet. d. 425 feet.
What is the value of phrase after the following code executes?
string phrase = “A nice day”, exes = “xxxx”; phrase.replace(2, 3, exes); a) “A xxxxce day” b) “Axxxxice day” c) “A xxxxe day” d) “Axxxxce day”