← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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