← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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