← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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