← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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