← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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