← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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