← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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