← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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