Fill in the blanks to select the first child of the div element. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

Fill in the blanks to select the first child of the div element.

Ans $ 0

16th Feb 2022, 9:25 AM
Santosh Tajpuriya
Santosh Tajpuriya - avatar
3 Answers
+ 5
What is your question? Please put the ***complete*** question in the description.
16th Feb 2022, 9:30 AM
Lisa
Lisa - avatar
0
div :first-child{} selects the first child of div element. In selector There should be space between div and semicolon Otherwise div:firstchild{} will select any div that is first child of its parent.
17th Feb 2022, 9:01 PM
yigitt
yigitt - avatar
0
$ ("div").children().eq( 0 );
15th Nov 2022, 11:59 PM
Ahmed Khaled Sobhi
Ahmed Khaled Sobhi - avatar