← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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