← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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