← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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