← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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