← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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