← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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