← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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