← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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