← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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