← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. in the head
  2. <!DOCTYPE html>
  3. in the body
  4. <!DOCTYPE html>
  5. in the head
  6. in the head
  7. on the browser tab
  8. Art Gallery
  9. Easy snacks
  10. <body>
  11. in the body
  12. </html>
  13. Riya’s Recipes
  14. <a>
  15. Cricket Club
  16. <style>
  17. <html>
  18. in the body
  19. False
  20. <p>
  21. All about me
  22. True
  23. Art Gallery
  24. True
  25. Cricket Club
  26. Space Facts
  27. True
  28. All about me
  29. the body
  30. <table>
  31. My Hobbies
  32. All about me
  33. False
  34. <ul>
  35. Match report
  36. Class 7 Blog
  37. False
  38. </head>
  39. Riya’s Recipes
  40. in the body

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