← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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