← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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