Which code segment should you use?

You are creating a web form that users will use to enter their personal information. The form includes the following HTML.

You have the following requirements:
• When a user enters an input box, the cell on the right must turn green.
• When a user leaves an input box, the cell on the right must turn white.
You need to create the web form to meet these requirements.
Which code segment should you use? nth-child
A. Option A
B. Option B
C. Option C
D. Option D

microsoft-exams

2 thoughts on “Which code segment should you use?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.