← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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