Workshop
The workshop contains quiz questions and activities to help you
solidify
your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that
follows
.
Quiz
|
1:
|
What four tags are required in every HTML page?
|
|
2:
|
Insert the appropriate line-break and paragraph-break tags to format the following
two-line
poems with a blank line between them:
Good night, God
bless
you,
Go to bed and undress you.
Good night, sweet repose,
Half the bed and all the clothes.
|
|
3:
|
Write the HTML for the following to appear one after the other:
-
A small heading with the words "We are Proud to Present"
-
A horizontal rule across the page
-
A large heading with the one word, "Orbit"
-
A
medium-
sized
heading with the words "The Geometric Juggler"
-
Another horizontal rule
|
|
4:
|
Write a complete HTML web page with the title "Foo Bar" and a heading at the top that reads "Happy Hour at the Foo Bar," followed by the words "Come on down!" in regular type.
|
Answers
|
A1:
|
<html>
,
<head>
,
<title>
, and
<body>
(along with their closing tags,
</html>
,
</head>
,
</title>
, and
</body>
).
|
|
A2:
|
<p>Good night, God bless you,<br />
Go to bed and undress you.</p>
<p>Good night, sweet repose,<br />
Half the bed and all the clothes.</p>
|
|
A3:
|
<h3>We are Proud to Present</h3>
<hr />
<h1>Orbit</h1>
<h2>The Geometric Juggler</h2>
<hr />
|
|
A4:
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Foo Bar</title>
</head>
<body>
<h1>Happy Hour at the Foo Bar</h1>
Come on Down!
</body>
</html>
|
|