← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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