← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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