← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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