← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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