← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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