← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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