← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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