← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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