← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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