← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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