← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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