← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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