← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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