← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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