← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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