Name: | ___________________________________________ |
Student ID #: | ___________________ |
Good luck!
Problem | Description | Earned | Max |
---|---|---|---|
1 | HTML/CSS Interpreting | 30 | |
2 | HTML/CSS Programming | 30 | |
3 | Javascript Programming | 40 | |
X | Extra Credit | +1 | |
TOTAL | 100 |
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 . You can indicate a background coloring by shading lightly or by drawing repeated diagonal lines like .
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; } |
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:
inigo.jpg
and rugen.jpg
and are drawn at their default sizes.DDDDDD
. 5px separate these images from any surrounding content.