← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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