DOM manipulation lab

Medium
18
63.2% Acceptance

In this lab, you will learn how to dynamically create elements, add them to the DOM, and manipulate their attributes using plain JavaScript. You will be provided with an HTML file containing a single div element with an id container. Your task is to add more elements inside this container using JavaScript, manipulate their attributes, and perform certain tasks when the elements are clicked.

Below are the challenges for this lab: