This assignment is worth a total of 100 points.
Text is a major part of web programming. Reading text, writing text, parsing text, regular expressions, text transformations, it goes on and on.
This assignment will focus on text and HTML. Be sure to read all the problems so that you don't get hung up on the first problem. The other problems are shorter and you might want to finish them first and get them out of the way.
The files you will need to complete this assignment are located in this files folder.
You are to take the text from a portion of Shakespeare's "A Midsummer Night's Dream", and add links to a Character Glossary page. There should be two HTML files, one named "index.html" and one named "characters.html". The index.html file will contain the text of the play, and will contain links to the Character descriptions in the glossary page, characters.html.
First take the text from characters.txt
and build an HTML page. Build an HTML table containing the characters, with columns for name, description, and an image. Images are provided for Theseus and Oberon/Titania. You should try and find other images for the other characters.
characters.html
style.css
- is provided for you, so that tables and things don't look too terrible. This style sheet should be linked to both index.html and character.html. We may not have covered linking style sheets in class yet, so look up the <link>
element syntax for referencing an external stylesheet.
The final characters page should look similar to the following:
Here is a sample of the text of the play:
Each word in all capitals is a character in the play. Each of these words should become a link to the correct character in the glossary page. These character links must use targeted page fragments to target exactly the row in the character's table in characters.html.
There is a short section of a play in the files folder. Take this text, and create a well formed HTML document containing the text of the play, along with links to the characters.html
file. Your input file will be dream.txt
and your output file will be index.html
The final index.html page should look similar to this:
In the files folder for this assignment is an HTML file named dom.html
. Draw the DOM tree for this HTML document, similar to the one shown during class
dom.png
and turned in with the rest of your files.
Select 3 HTML Character References, and display them in a table. Create a new HTML file called char_refs.html
for this problem. The resulting HTML file should look similar to the following:
Create a new HTML file called mimic.html
for this problem. Look at the image called mimic.gif in the files folder.
Create an HTML document that matches this PDF.
What HTTP request might have been sent to get the following response? Create a new text file called http.txt
that contains your answer for this question.
HTTP/1.1 404 Not Found
Server: nginx
Content-Type: text/html; charset=utf-8
Keep-Alive: timeout=10
Etag: "1409594856-1"
X-Content-Type-Options: nosniff
X-Frame-Options: SameOrigin
Content-Language: en
X-UA-Compatible: IE=Edge,chrome=1
Link: <http://www.arizona.edu/>; rel="canonical",<http://www.arizona.edu/>; rel="shortlink"
Cache-Control: public, max-age=21600
Last-Modified: Mon, 01 Sep 2014 18:07:36 +0000
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Date: Mon, 01 Sep 2014 18:07:37 GMT
X-Varnish: 1864218493
Age: 0
Via: 1.1 varnish
Connection: keep-alive
Vary: Cookie, Accept-Encoding
X-Cache: MISS
X-Node: appstack-prod-231.dubstep.arizona.edu
Set-Cookie: BIGipServerArizona.edu_Site.app~Arizona.edu_Site_pool=3880750090.20480.0000; path=/
Set-Cookie: bbbbbbbbbbbbbbb=OLBAFEHKEPPGCCJMMAMOFAFKKCBIDAOBOGOMHHGKJFIDIOIGLLCBOLDCMFLAKCONNFKENIDIOJOKKMGHJLAGNOCLBMAKDKBIPDFJIDDLFPBJJOJNLMMCAGFIABOINDJK; HttpOnly
Set-Cookie: f5_cspm=1234;
Transfer-Encoding: chunked
You should create a folder holding your files, and zip it up for submission. Name your folder and zip file something descriptive like Your-Name-HW1.zip or something.
I've had many past submissions where its obvious that things worked correctly on your computer, but the links, paths, etc did NOT work in the version that was submitted. We will do our best to determine if errors were simple ones, but we'll still mark off for solutions that do not work from the submitted files.
After preparing your .ZIP file, copy it to a new location, better yet a new computer, and make sure that when you un-zip it, everything still works!
Homeworks Zip files will be submitted to D2L, in the "Homework 1" dropbox.