← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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