INFM 603
Information Technology and Organizational Context
Spring 2015
Assignment H2


The purpose of this assignment is to begin to get your feet wet with Javascript. Nothing fancy -- just the ability to run a simple javascript program that prints something on the screen. This will then give you the ability to try out some of the other things you are reading about as you read them. We'll also use this to get a little experience with CSS.

  1. Use Javascript to create a Web page that will display the first four lines of the Rime of the Ancient Mariner, a poem that is available from Project Gutenberg at http://www.gutenberg.org/files/151/151-h/151-h.htm. To be clear, the first line of the poem starts with "It is ..." and the fourth line ends with "... thou me?". As is expected in poetry, your program must display the lines with line breaks in the same position as in the original. Your JavaScript program must be embedded in an HTML file (called hw2.html), but the poem displayed must be created by Javascript code (you may use HTML to display other things, such as the name of the poem, if you wish, but that is not required).
  2. Use an external style sheet to make the color of the background of your web page chartreuse.
  3. Place the resulting page at http://terpconnect.umd.edu/~YOURUSERNAMEHERE/603/hw2.html and link it from the index.html file in the same directory.

Doug Oard
Last modified: Wed Jan 14 20:12:04 2015