← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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