-
How does the color attribute work?
-
- Changes color of the text as well as background
- Changes color of the text
- Changes background color
- The color picker is defined by it
- None of these
Correct Option: D
color is the attribute of element introduce by HTML5. It defines the color picker i.e we can select a color of our choice from the color picker. Syntax is Select the color that you want: <input type=”color” name=”favorite color”>