← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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