← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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