Starting from:

$30

WEB222-Assignment 3 Solved

Update HTML & JavaScript code for each of the following pages according to the instructions outlined below. To begin, download the assignment3.zip file containing all of the files required for Assignment 3 from blackboard.

 

Uncompress the zip files somewhere on your local machine. When you're ready to begin editing the files, open the uncompressed folder (assignment3) in Visual Studio Code (https://code.visualstudio.com) using "Open Folder". You may test your html files in any modern browser (Chrome, Firefox, Safari, Internet Explorer, etc). Modify the pages only as stated below.

 

"Assignment 3 Home" - index.html:  

 

Update the "Assignment 3 Home" page with the following:  

1.  Add a professional greeting to the visitor, i.e.: "Welcome to my website, I will be demonstrating HTML5 principles and techniques, DOM manipulation"… and so on.  

2.  Add a relevant header as a title for the next section (step 3)  

3.  Add a short paragraph that introduces this website, i.e.: "This site contains 8 pages, including: Home, HTML Text, HTML Lists"… and so on. NOTE: This paragraph must include all relevant links to the 7 pages .

4.  Add a relevant header as a title for the next section (step 5)  

5.  Display the following html markup code in your page. (Hint: use html entities)  

 

<!doctype html> 

<html> 

<head> 

   <title>WEB222</title> 

   <script src="js/myscript.js"></script> 

</head> 

<body> 

   <h2>Basic HTML5 Document Structure</h2> 

   <p>This is a paragraph</p>  

</body> 

</html>

 

 

 

"HTML Lists" - list.html:  

 

Update the "HTML Lists" page with the following:  

1. Inside list.html, create any nested list with meaningful items using healthy food, calories and nutrition.  

• The nested list should contain at least one ordered list and at least one unordered list.  

 

2.  Update the list.html page to include two containers (i.e.: <div>) with unique id values.  

 

3.  Add a relevant header as a title for the next section (step 4)  

4.  Use the fruits array inside the lists.js file (js/list.js) to write (using JavaScript) an ordered list containing all the fruit inside the array, (ie:"Apples","Oranges","Pears","Grapes","Pineapples","Mangos") to one of your containers in the list.html page. Be sure to write to your container (using JavaScript) after the window has completely loaded. The ordered list should look like the image below when complete:  

  

5.  Add a relevant header as a title for the next section (step 6)  

6.  Use the directory array inside the list.js file (js/list.js) to write (using JavaScript) a nested unordered list containing all the files and directories (with their files) inside the array to one of your containers in the list.html page.  

 

You will notice that files have the type "file" and consist of a "name" property, whereas directories have the type "directory" and consist of a "name" property in addition to an array of files. Use these properties to correctly construct your nested unordered list (using JavaScript).  

 

Be sure to write to your container after the window has completely loaded (using JavaScript). The nested  unordered list should look like the image below when complete:  

 

      

 

 

"HTML Tables" - table.html:  

 

Update the "HTML Tables" page with the following:  

1.      Inside table.html, create the following two tables, each with a relevant header as a title:  

 

•       The 1st table should be composed of the elements: <table style="border:1px solid;">, <tr>, <th>, <td> and <caption> with meaningful table contents, i.e.: a table of your program, courses enrolled, hours of each course etc.  

•       The 2nd table should be composed of the elements: <table style=”border:1px solid;">, <tr>, <th>, <td>, <thead>, <tfoot> and <tbody> with meaningful table contents, i.e.: a table of your favourite personalities, authors, descriptions etc.

 

2.      Update the table.html page to include an additional container (i.e.: <div>) with a unique id value.  

3.      Add a relevant header as a title for the next section (step 4)  

4.      Use the users array inside the table.js file (js/table.js) to write a complete 3rd table containing all the users inside the array (and an appropriate header row), to your container in the table.html page.  

 

 

You will notice that users consist of the properties: first_name, last_name, age, and email. Use these properties to correctly construct your table (using JavaScript) with the following headers: First Name, Last Name, Age and Email. You must also ensure that all email addresses are rendered as a valid "mailto" link and will open as a new message in the user's default mail client when clicked.  

 

Be sure to write to your container after the window has completely loaded. The table should look like the image below when complete:  

 

  

  

"HTML Images" - image.html:  

 

Update the "HTML Images" page with the following:

1.  Find the given image with the file named ict.png under the "img" sub-folder included in the zip file. Show the image in your web page using a relative path. Ensure that when the image is not available, the text “ICT School, Seneca College” is visible on the page and make the image a hyperlink to the ICT School website.  

 

2.  Update the image.html page to include an additional container (i.e.: <div>) with a unique id value.  

3.  Add a relevant header as a title for the next section (step 4)  

 

4.  Use the images array inside the image.js file (js/image.js) to write 5 new <figure> elements to your container in the image.html page (using JavaScript). You will notice that each image in the array has the following properties: caption, alt and url. Use these properties to correctly construct (using JavaScript) your <figure> elements such that each element contains a valid image (using url and alt) as well as a caption underneath the image with the message contained within the caption property  

 

Be sure to write to your container after the window has completely loaded (using JavaScript). The <figure> elements should look like the image below when complete (only the first 2 shown):  

 

  

"HTML5 Audio" - audio.html: 

Update the "HTML5 Audio" page with the following: 

1.  Update the audio.html page to include an additional container (i.e.: <div>) with a unique id value.  

2.  Use the audio object inside the audio.js file (js/audio.js) to render an audio player in your container within the audio.html page.  

 

You will notice that the audio object consists of the properties: controls and source. Use these properties to correctly construct (using JavaScript) your audio player with (or without) controls, and the correct source options.  

 

Be sure to write to your container after the window has completely loaded.  

 

 

"HTML5 Video" - video.html: 

Update the "HTML5 Video" page with the following:

 

1.  Update the video.html page to include an additional container (i.e.: <div>) with a unique id value.  

2.  Use the video object inside the video.js file (js/video.js) to render a video player in your container within the video.html page.  

 

You will notice that the video object consists of the properties: controls, width, height and source. Use these properties to correctly construct (using JavaScript) your video player with (or without) controls, in the correct dimensions and using the correct source options.  

 

Be sure to write to your container after the window has completely loaded.  

 

More products