← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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