← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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