How should you complete the code?

Posted by: Pdfprep Category: 98-382 Tags: , ,

HOTSPOT

You are designing a web page that contains a list of animals. The web page includes a script that outputs animals from a list.

You create the following HTML to test the script:

You need to create a function that will display the list of animals, including any formatting, in the div element.

How should you complete the code? To answer, select the appropriate code segments in the answer area.

NOTE: Each correct selection is worth one point.

Answer:

Explanation: https://www.w3schools.com/jsref/met_element_getelementsbytagname.asp

Leave a Reply

Your email address will not be published.