← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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