Home » HTML » HTML Forms » Question
  1. How does the color attribute work?
    1. Changes color of the text as well as background
    2. Changes color of the text
    3. Changes background color
    4. The color picker is defined by it
    5. 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”>



Your comments will be displayed only after manual approval.