← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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