← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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