← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. in the head
  2. in the body
  3. <title>
  4. All about me
  5. False
  6. </html>
  7. <body>
  8. False
  9. the body
  10. False
  11. Space Facts
  12. False
  13. True
  14. in the head
  15. <html>
  16. in the body
  17. in the body
  18. <style>
  19. <!DOCTYPE html>
  20. Space Facts
  21. All about me
  22. False
  23. Match report
  24. in the head
  25. All about me
  26. Class 7 Blog
  27. Class 7 Blog
  28. Art Gallery
  29. False
  30. Class 7 Blog
  31. Easy snacks
  32. Space Facts
  33. <link rel="stylesheet">
  34. True
  35. in the body
  36. <p>
  37. <!DOCTYPE html>
  38. <head>
  39. in the head
  40. in the body

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