CSE 190 M, Spring 2007
Midterm Exam

Name: ___________________________________________
 
Student ID #: ___________________

Good luck!

ProblemDescription EarnedMax
1 HTML/CSS Interpreting     30
2 HTML/CSS Programming     30
3 Javascript Programming    40
X Extra Credit     +1
TOTAL  100

1. HTML/CSS Interpreting (30 points)

Draw a picture of how the following HTML and CSS code will look when the browser renders it onscreen. Indicate any non-default font with a squiggled underline like this. You can indicate a background coloring by shading lightly or by drawing repeated diagonal lines like this.


HTML
CSS
h1 {
  float: right;
  font-size: 10em;
}
h2 {
  border: 2px solid black;
  clear: both;
  font-family: monospace;
}
.one { background-color: yellow; }
#one, #two, h2 { width: 50%; }
#two {
  text-align: right;
  border: 3px solid black;
}
.three {
  border-top: none;
  border-bottom: none;
}

2. HTML/CSS Programming (30 points)

Write the XHTML and CSS code necessary to recreate the following appearance onscreen, between but not including the thick black lines. (No manual line breaks have been inserted into the text.) Assume that the code you're writing will be placed inside the body of the page. Part of your grade comes from choosing appropriate tags to match the semantics of the content. You should also write valid code that would pass the W3C validators, and separate stylistic information from HTML.

Some defaults about the desired appearance: