← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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