← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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