← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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