← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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