CSS Forms & Inputs Interview Questions – CSS Forms & Inputs Online Quiz

Question 1:  Which CSS property is used to change the background color of an input field?

Question 2:  How can you style a placeholder text inside an input field?

Question 3:  Which CSS property controls the size of a text input field?

Question 4:  Which CSS pseudo-class is used to style an input field when it's selected?

Question 5:  What property is used to round the corners of an input field?

Question 6:  How can you disable the resize option for a <textarea> using CSS?

Question 7:  Which CSS property is used to add space inside an input field?

Question 8:  How do you make a checkbox larger using CSS?

Question 9:  Which pseudo-class is used to style a required input field?

Question 10:  How do you change the border color of an input field when it contains invalid data?

Leave a Reply