← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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