← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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