← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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