References

Instructions

This lab should be completed individually by all the students.

You will have to demonstrate your solution in a scheduled lab session and submitting the project through the assignment link on Blackboard (Dropbox). You must name your folder according to the following rule:

yourlastname_COMP125_AssignmentNumber

Example: smith_COMP125_Assignment3Submit your folder including all the files (html, css and js) in a zip file named as (yourlastname_COMP125_AssignmentNumber.zip)

Requirements

Use the below given HTML code that creates a table. Re-create this table using onlyJavaScript and the core DOM objects to generate the HTML.

Add an element <tfoot> … </tfoot> to print a message “Car financing service is available”.

Test your code in all browsers available to you to make sure it works in them. Hint: Comment each line as you write it to keep track of where you are in the tree structure, and create a new variable for every element on the page.

Write JavaScript code to apply CSS rules for the followings:

Border as green solid thick

Table caption as “Car models 2017”Hint: JavaScript code to change the back ground color of the page document.body.style.backgroundColor = “blue”;

Add a new row with these following car information:

Brand - Ford

Model - Focus

Price - $25,540

Remove the first row from the table after getting a user confirmation.

Late submission

Late assignments are accepted three more days after the due date. A 10% penalty will be applied for every day that an assignment is late to a maximum of 70%.