← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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