← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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