← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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