CIS 119 - Basic page assignment

The objectives of this assignment are:

  1. create a valid webpage with separate CSS and JavaScript files
  2. create a working CSS file
  3. create a working JavaScript file
  4. organize files by function using subdirectories
  5. upload files to a remote server
  6. create subdirectories and organize files on a remote server
  7. test and debug a website

Overview

This assignment involves creating a web page on a remote server. The page displays a heading and a couple of lines of text. CSS is used to style the page. JavaScript is used to replace the content of one of the lines of text.

Requirements

  1. Create a simple web page with the name basicPage.html. This web page should follow the HTML5 web page template given in the notes and discussed in class. It should include documentation comments, Eric Meyer's CSS reset code, and the html5shiv link. The document itself should contain no CSS or JavaScript, but should link to files in subdirectories that contain the proper CSS and JavaScript.
  2. The HTML document should:
    1. follow the format of the web page template given in the notes
    2. include a link to the html5shiv JavaScript code for IE versions less than IE 9
    3. include a link to Eric Meyer's CSS reset code
    4. include a link to a CSS style page made just for this web page
    5. include a link to a JavaScript file made just for this web page
    6. contain documentation comments including the name of the file, your name, the course, the date, and a short description of the web page
    7. contain an h1 element with the name of the assignment
    8. contain a div element with a class of content and the text: This is the original content.
    9. contain a div element with a class of content, an id of replaceMe and the text: This content should be replaced.
  3. Create a CSS file to modify the look of your web page. The CSS file should:
    1. be located in a subdirectory named style or css
    2. contain documentation comments including the name of the file, your name, the course, the date, and a short description of the file
    3. a CSS rule to change the background color of the web page (the body tag)
    4. a CSS rule to change the font-size, font-weight, color, margin-top, and margin-bottom of h1 tags
    5. a CSS rule to change the color, and margin-top and margin-bottom of div tags which have a class of content
  4. Create a JavaScript file which:
    1. be located in a subdirectory named scripts or javascript
    2. contain documentation comments including the name of the file, your name, the course, the date, and a short description of the file
    3. a function which will change the content (innerHTML) of the element with the id of replaceMe with the text: This is content provided by JavaScript.
    4. a JavaScript statement which will cause the function in the previous step to run as soon as the web page has finished loading
  5. Upload your files (including subdirectories) to the remote server. Test and debug your program. When you are done, let the instructor know via email that your assignment is ready to be graded.

Grading rubric

  1. 4 pts: HTML file follows template given in notes (HTML5, html5shiv, CSS reset, etc.)
  2. 3 pts: HTML file has proper documentation comments
  3. 5 pts: HTML file has required assignment elements (h1, div elements with class, div element with id)
  4. 4 pts: HTML file has correct and working links to CSS and JavaScript code
  5. 2 pts: CSS file located in subdirectory
  6. 3 pts: CSS file has proper documentation comments
  7. 6 pts: CSS file has correct rules for body, h1, and div.content elements
  8. 2 pts: JavaScript file located in subdirectory
  9. 3 pts: JavaScript file has proper documentation comments
  10. 8 pts: JavaScript file has properly working function and code to run the function when the page is done loading

Examples

Basic web page with only CSS reset working
Basic web page with only CSS reset working
Basic web page with all CSS missing
Basic web page with all CSS missing
Basic web page with JavaScript missing
Basic web page with JavaScript missing
Basic web page with everything working
Basic web page with everything working