← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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