← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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