CSS Colors & Backgrounds Interview Questions – CSS Colors & Background Colors Online Quiz

Question 1:  Which CSS property is used to change the text color of an element?

Question 2:  What is the default value of the background-repeat property?

Question 3:  Which of the following is a valid way to set a background image in CSS?

Question 4:  Which CSS property is used to set the transparency of an element?

Question 5:  What does rgba(255, 0, 0, 0.5) represent?

Question 6:  Which CSS property sets the background color of an element?

Question 7:  How can you set a gradient background in CSS?

Question 8:  What is the function of the background-attachment property?

Question 9:  Which of the following is a valid hex color code?

Question 10:  What will background-size: cover; do?

Leave a Reply