← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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