← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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