← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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