I am trying to create a javascript code that performs the following tasks for my childern:

1)prompts the user to enter a value between 1 and 12 (inclusive)

2) if the value falls outside of this range eg 13 then an alert box displays a message.

3)on entry of the correct value (1 to 12) the user should be presented with a multiplication table showing their input value multiplied between 1 and 12 times.

4)this multiplication table should be displayed in a html table with 13 rows and five columns, the first row should contain a suitable heading which includes the input value in merged fields; the five columns should contain the multiplying value (from 1 to 12), the word "times", the input value, the word "equals" and finally the result.

5)the table header should have a light gray background with lines of the multiplication table having alternately light blue and light yellow backgrounds.