← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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