Given this HTML:
  • Apples
  • Pears
  • Bananas

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Given this HTML:
  • Apples
  • Pears
  • Bananas

Post by answerhappygod »

Given This Html Ul Li Id One Apples Li Li Id Two Pears Li Li Id Three Class Special Bananas Li Li I 1
Given This Html Ul Li Id One Apples Li Li Id Two Pears Li Li Id Three Class Special Bananas Li Li I 1 (46.31 KiB) Viewed 29 times
Given this HTML: <ul> <li id="one">Apples</li> <li id="two">Pears</li> <li id="three" class="special">Bananas</li> <li id="four">Oranges</li> </ul> and this javascript acting on this HTML: myEl document.querySelector ("ul"); What property of myEl would you use to access the first list item (<li>)? O this getFirstChild() O myEl.nodes[0] O myEl.getChildren()[0] O myEl.firstElementChild
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply