Question: Create a web page that generates a series of boxes, where the number of boxes is given by the user via a text input box.
Create a web page that generates a series of boxes, where the number of boxes is given by the user via a text input box. Incorporate the following behaviour: Set the background of each box to a random colour.
Number the boxes in consecutive integers, i.e. 1, 2, 3, . . . 1
Set the left margin of each box to be double the previous boxs left margin, where the first box has 5px left margin.
Clear the old boxes when a new input is given by the user. For reference, your code should produce something similar to the below figure for five boxes.

\begin{tabular}{ll} 5 & Draw \\ \hline \end{tabular} 1 3 5
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
