Individual Web Page 1 Assignment: Design, code, document and test one Web page which includes:
• Multiple data types (incl. Numeric, Boolean, String and Array)
• Multiple operators
• write methods which display variables assigned values and operators results
• Enclose script code within a <script> element within a CDATA section and hide from incompatible browsers.
• Some presentation/display/formatting (style, color, font, etc.) using each of the following:
An external CSS file.
Note: No global variables.
CODING STANDARD FOR WEB PAGES
The following Coding Standards will be used in all your web pages.
• Well formed and Valid template
• Minimum Required Documentation
• Test Data and Expected Results
• Coding Style
Well formed and valid template
To aid in insuring that your web pages are "well formed and valid", I am requiring that you use the following template.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!-- required "top comments" -->
<title>your document title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Minimum Required Documentation
For each file, please add these required comments directly above the <head> tag for each HTML document/file and at the very top for all other related text documents/files. Replace the <!-- required "top comments" --> from the template above with the information request below.
• REVISION HISTORY (at a minimum note the version number - better to provide a summary of changes since the last submission)
• What EDITOR you USED to create the page/program.
• A LIST OF ALL MY REQUIREMENTS for each program. Indicate any of them not implemented. PROVIDE (Also provide an accompanying INLINE COMMENT WHICH FLAGS EACH OF THESE REQUIREMENT IMPLEMENTATIONS (it is often difficult to find your implementation).
Test Data and Expected Results
• A web page can produce output but it needs to be the "expected results". Where the code in your Web page is not "self-documenting", include comments in the Web page, or in a separate "readme" text file, which provide reasonable test data and expected results.
• Be CONSISTENT.
• Name the initial web page index.htm and give any other pages meaningful names.
• Use meaningful VARIABLE names -- NOT x, y, a, etc.
• Limit all lines in code to less than 80 character (screen width).
• Use BLANK LINES to separate sections of the page/program and improve readability.
• Essentially follow the coding style in the texts.
Individual Web page 2, Expanded Web Site: Design, code, document and test a Web page with:
• Functions which include:
An array of two elements and a loop that displays the array values
A switch with break statements and default statement
A for loop
A while loop
A window.alert() method
• At least one function which uses an argument and returns a value.
• All functions in scripts.
Please check attachment.
Let me know if you have any ...
The expert examines individual website help using HTML scripts.