← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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