For Prof_Baron

User Generated

FghqlOhgyre

Programming

Description

Specific Instructions for Assignment 4:

For this assignment, you will add a third page to your website named "table.html" and code a table on that page. You will also add code to your CSS file to format your table.

1) Create a new HTML file in your text editor and name the file "table.html". Just like last week, your new file should contain all of the same basic code that is in the head section of your home page. The body section will contain your new table, which you will create by following the remaining steps of this assignment. After coding all of the basic required HTML tags in your new file, save your new file and validate it using the HTML validator: https://validator.w3.org/#validate_by_upload. Debug and fix any errors identified by the validator until your file passes validation.

2) Make sure the external CSS style sheet you created in Assignment 2 is linked into your new "table.html" file with the <link> tag in the head section of the file. Your website should only have 1 CSS file, and that same file should be linked into all HTML pages of your website.

3) Modify your navigation menu on your home page and your "about.html" page by adding a link to this new page. Then add your navigation menu to your new "table.html" file, so that users can navigate to your other pages from this new page.

4) In your table.html file, add the following code:

Create a table using the <table> tag. Your table must have a row of headings and at least three rows and three columns of data. Use the <tr>, <th>, and <td> tags appropriately. You can see examples of the code for HTML tables here: https://www.w3schools.com/html/html_tables.asp

5) In your HTML file, give your table a caption, using the <caption> tag. You can read about adding a caption to your table here: https://www.w3schools.com/html/html_tables.asp

Open your CSS file in your text editor and complete the following steps:

6) In your CSS file, set the "width" property for the <table> element, using percentage rather than pixels. You can read about setting table width here: https://www.w3schools.com/css/css_table.asp

7) In your CSS file, give your table a background color that is different from the background color of the body of your webpage. Use the "background-color" property. You can read about table colors here: https://www.w3schools.com/css/css_table.asp

8) In your CSS file, set the "border-style", "border-width", and "border-color" properties for the <table>, <th>, and <td> elements. Remember that all three of these properties can be set in the same line of code using the "border" shorthand property. You can read about the CSS border properties here: https://www.w3schools.com/css/css_border.asp

9) To avoid double borders, set the "border-collapse" property to indicate that table borders should be collapsed into a single border. You can read more about collapsing table borders here: https://www.w3schools.com/css/css_table.asp

10) Set the CSS "padding" property for your table header <th> and table data <td> cells. You can read about adding cell padding here: https://www.w3schools.com/html/html_tables.asp

11) Set the horizontal alignment of your table header <th> and table data <td> cells, using the "text-align" property. Set the vertical alignment of your table header <th> and table data <td> cells, using the "vertical-align" property. Even if you like the default settings of these properties, make sure you explicitly set each of these properties for both your table header <th> and table data <td> cells in your CSS file, to demonstrate your understanding of how to set these properties. You can read about horizontal alignment and vertical alignment here: https://www.w3schools.com/css/css_table.asp

Hint: You can find examples of all of the HTML elements and CSS properties required for this assignment in the Week 4 module in the Lessons area of the classroom.

Before submitting your web site:

  1. Validate all HTML files at https://validator.w3.org/#validate_by_upload, using the "Validate by File Upload" option, and fix any errors that the validator identifies before submitting your web site for grading.
  2. Validate your CSS file at https://jigsaw.w3.org/css-validator/#validate_by_upload, using the "Validate by File Upload" option, and fix any errors that the validator identifies before submitting your web site for grading.

Note: It is critical that you debug and fix ALL errors identified by these two code validators before submitting your assignments. Contact your instructor for assistance if you are having difficulty debugging and fixing your errors because it is imperative that your code files pass validation.

Submission Instructions: Create a zip file containing all files related to your web page (.html files, .css file, image files, and/or multimedia files). Make sure you maintain the necessary directory structure in your zip file so that your webpages will view correctly when unzipped. In other words, if your images are in a sub-folder on your computer, in relation to the folder containing your .html file, then you need to maintain that same directory structure in your zip file, too. Submit only the zip file for grading.

Rubric for Grading Assignment

Points

Webpages (HTML files) validate without errors at https://validator.w3.org/#validate_by_upload10
Style sheet (CSS file) validates without errors at https://jigsaw.w3.org/css-validator/#validate_by_upload10
Website contains well-written, well-thought-out, creative, attractive, and well-organized content (uses paragraph, line break, heading tags, and horizontal rules appropriately to organize content)5
Correct use of all basic elements in a webpage document (Ex: DOCTYPE, html, head, body, meta, title, link, etc.) on every HTML page5
Consistent navigation menu on all pages of your website, using local hyperlinks (coded with relative paths)5

CSS style sheet containing appropriate formatting for your website, linked into all HTML pages on your website

5

Table contains data or information appropriate for display with a table and is logically organized in the table10
Correct use and correct embedding of table, table row, table header, and table data tags10
Table contains appropriate caption, correctly specified with table caption tag5
Table contains appropriate column and/or row headings, correctly specified with table header tags5
Table, table headers, and table data cells contains appropriate border, specified with the border shorthand property in CSS, and the border-collapse property

5

Table header and table data cells contain an appropriate horizontal and vertical alignment, specified in CSS5
CSS correctly used to specify an appropriate amount of padding around the content in your table header and table data cells5
Table contains an appropriate background color, specified in CSS5
Table width is specified in CSS (using percentage instead of pixels)5
Correctly created zip file that contains all files for webpage (maintaining original folder structure)5

Total

100

***Note: Your website must include the required table, as specified in the instructions above, to receive any credit for this assignment. Websites submitted without a table will not receive credit.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Kindly check on the attached file ...


Anonymous
Just what I was looking for! Super helpful.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags