← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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