← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <p>
  2. <!DOCTYPE html>
  3. in the head
  4. <ul>
  5. <head>
  6. <style>
  7. in the body
  8. True
  9. in the body
  10. <body>
  11. on the browser tab
  12. False
  13. Welcome!
  14. False
  15. False
  16. <title>
  17. My drawings
  18. in the head
  19. Welcome!
  20. Art Gallery
  21. <!DOCTYPE html>
  22. in the body
  23. Cricket Club
  24. Easy snacks
  25. Welcome!
  26. <!DOCTYPE html>
  27. Easy snacks
  28. </html>
  29. in the body
  30. Cricket Club
  31. in the head
  32. False
  33. Cricket Club
  34. Easy snacks
  35. <link rel="stylesheet">
  36. in the body
  37. the body
  38. Cricket Club
  39. Art Gallery
  40. <!DOCTYPE html>

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