← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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