← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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