← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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