Direction: Choose the correct option
Q1.
input[type=text] {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
}What type of form elements does this style?Direction: Choose the correct option
Q2.
input:focus {
border-color: #4CAF50;
outline: none;
box-shadow: 0 0 5px rgba(76,175,80,0.5);
}When does this style apply?Direction: Choose the correct option
Q3.
input:valid {
border-color: green;
}
input:invalid {
border-color: red;
}What does this CSS do?Direction: Choose the correct option
Q4.
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}Why is cursor: pointer important for buttons?Direction: Choose the correct option
Q5.
.form-row {
display: flex;
align-items: center;
margin-bottom: 15px;
}What layout does this create for forms?