← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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