← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

HTML and CSS lesson 8: Page structure: head and body · Set 553 · 40 questions
TalentJR

Code tip (Head for the browser, body for you): <!DOCTYPE html> first, then <html> with <head> and <body> inside. The head holds <title> (shown on the browser tab), <meta>, <style> and <link>. The body holds everything you see on the page.

NameDateTime takenScore ___ / 40
  1. 1.True or false: <table> goes in the body. (a) False (b) True
  2. 2.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  3. 3.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the doctype (d) the title
  4. 4.True or false: <p> goes in the body. (a) True (b) False
  5. 5.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) nowhere (d) in a big heading
  6. 6.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <head> (c) <html> (d) <body>
  7. 7.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Welcome! (b) Space Facts (c) body (d) Here is my best one.
  8. 8.True or false: <h1> goes in the head. (a) True (b) False
  9. 9.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <img>
  10. 10.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
  11. 11.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <table> (c) <h1> (d) <img>
  12. 12.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Space Facts (b) All about me (c) Mars is red. (d) index.html
  13. 13.True or false: <img> goes in the head. (a) False (b) True
  14. 14.Which of these goes in the body? (a) <a> (b) <title> (c) <link rel="stylesheet"> (d) <style>
  15. 15.True or false: <img> goes in the body. (a) True (b) False
  16. 16.True or false: <title> goes in the body. (a) False (b) True
  17. 17.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  18. 18.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Easy snacks (b) Art Gallery (c) index.html (d) I like to read.
  19. 19.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) body (b) My drawings (c) Thanks for visiting. (d) Art Gallery
  20. 20.True or false: <ul> goes in the body. (a) True (b) False
  21. 21.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  22. 22.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  23. 23.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) I like to read. (c) body (d) Easy snacks
  24. 24.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Mars is red. (b) My drawings (c) Cricket Club (d) index.html
  25. 25.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Welcome! (b) Cricket Club (c) I like to read. (d) body
  26. 26.Which of these goes in the body? (a) <h1> (b) <link rel="stylesheet"> (c) <title> (d) <meta charset="utf-8">
  27. 27.True or false: <title> goes in the head. (a) False (b) True
  28. 28.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <ul> (d) <style>
  29. 29.Which of these goes in the head? (a) <h1> (b) <table> (c) <title> (d) <p>
  30. 30.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <html> (c) <head> (d) </head>
  31. 31.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) body (c) My drawings (d) Riya’s Recipes
  32. 32.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) body (b) Space Facts (c) I like to read. (d) My drawings
  33. 33.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) index.html (b) Planets (c) Riya’s Recipes (d) I like to read.
  34. 34.🔢 In a basic web page file, which comes first: “</html>” or “<html>”? (a) <html> (b) </html>
  35. 35.True or false: <style> goes in the head. (a) True (b) False
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) All about me (b) Mars is red. (c) My Hobbies (d) body
  37. 37.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) Welcome! (c) body (d) Mars is red.
  38. 38.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Thanks for visiting. (c) Planets (d) body
  39. 39.True or false: <style> goes in the body. (a) False (b) True
  40. 40.🔢 In a basic web page file, which comes first: “<html>” or “</html>”? (a) <html> (b) </html>

Answer key

  1. True
  2. in the body
  3. the body
  4. True
  5. on the browser tab
  6. <!DOCTYPE html>
  7. Welcome!
  8. False
  9. <img>
  10. True
  11. <meta charset="utf-8">
  12. Space Facts
  13. False
  14. <a>
  15. True
  16. False
  17. in the head
  18. Art Gallery
  19. My drawings
  20. True
  21. in the body
  22. in the head
  23. Easy snacks
  24. Cricket Club
  25. Welcome!
  26. <h1>
  27. True
  28. <ul>
  29. <title>
  30. </html>
  31. My drawings
  32. My drawings
  33. Riya’s Recipes
  34. <html>
  35. True
  36. All about me
  37. Welcome!
  38. Planets
  39. False
  40. <html>

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids