← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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