Creating a table dynamically (back to Sample1.html)
1. Get the body object (first item of the document object).
2. Create all the elements.
3. Finally, append each child according to the table structure (as in the above figure). The following source code is a commented version for the sample1. html.