HTML and Web Pages Basics Quiz

Grade 5 · Technology · Quiz

Test your knowledge of HTML tags, page structure, and how web pages are built.

Questions

  1. Which tag is used to create the largest heading on a web page?

    1. <heading>
    2. <h6>
    3. <h1>
    4. <title>
    Show answer

    Answer: <h1>

    <h1> is the largest heading. Headings go from <h1> (biggest) to <h6> (smallest).

  2. What is the correct way to write a closing tag for a paragraph?

    1. <p/>
    2. </p>
    3. <close p>
    4. p>
    Show answer

    Answer: </p>

    Closing tags use a forward slash before the tag name, like </p>.

  3. Which part of an HTML page contains information NOT shown directly on the page, like the page title?

    1. <body>
    2. <footer>
    3. <head>
    4. <main>
    Show answer

    Answer: <head>

    The <head> section holds metadata like the page title, which appears in the browser tab but not on the page itself.

  4. What does the href attribute do in an <a> tag?

    1. Sets the font color of the link text
    2. Specifies the URL the link points to
    3. Creates a new browser tab
    4. Defines the image to display
    Show answer

    Answer: Specifies the URL the link points to

    The href attribute (short for hypertext reference) tells the browser where to navigate when the link is clicked.

  5. Which tag is used to add an image to a web page?

    1. <picture>
    2. <photo>
    3. <image>
    4. <img>
    Show answer

    Answer: <img>

    <img> is the correct HTML tag for embedding images. It is a self-closing tag that uses a src attribute for the image path.

  6. What should appear at the very beginning of every HTML document?

    1. <head>
    2. <!DOCTYPE html>
    3. <html>
    4. <start>
    Show answer

    Answer: <!DOCTYPE html>

    <!DOCTYPE html> must be the first line of an HTML document so the browser knows it is an HTML5 page.

  7. HTML alone can make a web page interactive, like responding to a button click.

    Show answer

    Answer: False

    HTML structures content but is not interactive on its own. JavaScript is needed for interactivity like button clicks.

  8. The <b> tag makes text appear ________ on a web page.

    Show answer

    Answer: bold

    The <b> tag makes text bold. The <i> tag makes text italic, and <u> makes text underlined.

Get a personalized course on HTML and Web Pages Basics built around your child.