← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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