← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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