← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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