← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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