← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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