← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <title>
  2. Space Facts
  3. in the body
  4. <!DOCTYPE html>
  5. on the browser tab
  6. <ul>
  7. <!DOCTYPE html>
  8. False
  9. Planets
  10. <!DOCTYPE html>
  11. Cricket Club
  12. <table>
  13. Cricket Club
  14. My Hobbies
  15. False
  16. Planets
  17. Space Facts
  18. </html>
  19. <p>
  20. Class 7 Blog
  21. the body
  22. False
  23. Space Facts
  24. in the body
  25. Cricket Club
  26. in the body
  27. Cricket Club
  28. False
  29. True
  30. <style>
  31. <html>
  32. Class 7 Blog
  33. in the head
  34. Planets
  35. in the body
  36. Planets
  37. False
  38. True
  39. True
  40. in the body

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