Here are the quizzes on CSS Forms, covering topics like form input styling, labels, buttons, focus effects, and validation styling.
Question 1
Which CSS property changes the background color of an input field?
input-color
background-color
field-background
color
Question 2
How can you make a form input field have rounded corners?
border-radius
corner-style
input-round
border-shape
Question 3
Which pseudo-class applies styles when a user clicks inside an input field?
:hover
:focus
:active
:checked
Question 4
How do you change the text color inside a placeholder?
::placeholder
:placeholder-text
placeholder-style
::input-placeholder
Question 5
How do you remove the default border outline when an input field is focused?
border: none;
outline: none;
border-width: 0px;
focus-style: hidden;
Question 6
Which property changes the appearance of a submit button when hovered?
button-hover
hover-style
:hover
focus-effect
Question 7
How can you disable resizing of a textarea field?
resize: none;
size: fixed;
textarea-resize: no;
overflow: hidden;
Question 8
Which property is used to set spacing inside an input field?
margin
padding
spacing
gap
Question 9
How do you style a required input field when it’s empty?
input:empty
input:valid
input:required
input:invalid
Question 10
What does the cursor: pointer; property do for buttons?
Makes the button larger
Changes the mouse cursor to a hand icon
Adds an animation effect
Disables the button
There are 10 questions to complete.