← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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