← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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