← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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