(Exercise 2.2) Here is the css file used for this web page. The div tag style is specified, but it isn't used in this document.

pre {background:yellow; color:maroon; font: 16pt Courier}
body {background:red; color:silver; font: italic 20pt Times}
div {color:red}
span {color:red}
(Exercises 2.3 and 2.4) Clicking on one of these two images opens a new window, even though this is not required for this exercise. (See Exercise 3.5.) Clicking on the "Learning About Spiders" image opens a window with a document that contains internal links

 

(Exercise 2.5) Here is some HTML code. Note that the css file specifies Courier font for content inside the pre element. Otherwise, it would appear as 20pt italic Times, as specified in the body style.

<html>
<head>
<title>Displaying HTML code in a document</title>
</head>
<body>
Here is an HTML document.
</body>
</html>