← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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