← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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