← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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