← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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