← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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