← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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