← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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