← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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