← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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