Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

How does the color attribute work?

a) Changes color of the text
b) Changes background color
c) The color picker is defined by it
d) Changes color of the text as well as background

Answer: c
Explanation: color is the attribute of <input> 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”>

Join The Discussion