← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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