← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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