← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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