← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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