← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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