← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. False
  2. <h1>
  3. False
  4. True
  5. in the head
  6. <!DOCTYPE html>
  7. Match report
  8. All about me
  9. <title>
  10. True
  11. False
  12. </html>
  13. in the body
  14. Art Gallery
  15. True
  16. the body
  17. </body>
  18. <table>
  19. in the body
  20. True
  21. True
  22. <!DOCTYPE html>
  23. Match report
  24. in the body
  25. in the head
  26. Welcome!
  27. False
  28. Art Gallery
  29. Cricket Club
  30. Planets
  31. in the head
  32. All about me
  33. My drawings
  34. All about me
  35. Welcome!
  36. True
  37. All about me
  38. Planets
  39. in the body
  40. Easy snacks

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