INFM 603 Homework 2
Note that this assignment has been changed extensively at noon on
September 10, 2011. The original assignment will also be accepted
(if you have already completed it), but it is recommended that you
complete and submit this one instead.
- 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).
- Use an external style sheet to make the color of the background
of your web page chartreuse.
- 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.
Last modified: Sat Sep 10 11:51:00 2011