← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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