← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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