← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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