Home > Articles > Web Development > HTML/CSS

  • Print
  • + Share This
This chapter is from the book

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. What HTML tags and text would you use to produce the following web content:

    • 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
  3. What code would you use to create a complete HTML web page with the title Foo Bar, a heading at the top that reads Happy Hour at the Foo Bar, followed by the words Come on down! in regular type?

Answers

  1. <html>, <head>, <title>, and <body> (along with their closing tags, </html>, </head>, </title>, and </body>).

  2. Your code would look like this:

    <h3>We are Proud to Present</h3>
    <hr />
    <h1>Orbit</h1>
    <h2>The Geometric Juggler</h2>
    <hr />
    
  3. Your code would look like this:

    <?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>
        <p>Come on Down!</p>
      </body>
    </html>
    
  • + Share This
  • 🔖 Save To Your Account