← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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