← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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