← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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