← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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