← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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