← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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