← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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