← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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