← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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