← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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