← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. in the head
  2. in the body
  3. True
  4. the body
  5. Welcome!
  6. Riya’s Recipes
  7. in the body
  8. in the body
  9. My drawings
  10. in the body
  11. <h1>
  12. <!DOCTYPE html>
  13. True
  14. True
  15. <head>
  16. </html>
  17. on the browser tab
  18. in the head
  19. <p>
  20. Space Facts
  21. in the body
  22. <!DOCTYPE html>
  23. Easy snacks
  24. Welcome!
  25. False
  26. in the body
  27. False
  28. <head>
  29. <ul>
  30. <img>
  31. Planets
  32. <html>
  33. False
  34. <a>
  35. Cricket Club
  36. in the head
  37. in the head
  38. True
  39. Space Facts
  40. Planets

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