Explore BrainMass

Individual website help

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

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
• All this in scripts and at least one external .js JavaScript source file
• 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:
 Inline CSS
 Internal CSS
 An external CSS file.

Note: No global variables.

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.
Coding Style
• 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.
• Arrange BRACES for ease of seeing matching pairs (JavaScript).
• CAPITALIZE the names of CONSTANTS (JavaScript).
• INDENT subordinate statements, much like an outline (and don't indent if a statement is not subordinate) (JavaScript).
• 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
 An if..else
 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.

© BrainMass Inc. brainmass.com March 21, 2019, 6:17 pm ad1c9bdddf


Solution Preview

Please check attachment.
Let me know if you have any ...

Solution Summary

The expert examines individual website help using HTML scripts.