← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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