← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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