← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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