← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <head>
  2. in the body
  3. </html>
  4. the body
  5. in the body
  6. Easy snacks
  7. <html>
  8. Easy snacks
  9. <table>
  10. <head>
  11. Match report
  12. </head>
  13. <!DOCTYPE html>
  14. False
  15. Easy snacks
  16. <!DOCTYPE html>
  17. False
  18. Riya’s Recipes
  19. <title>
  20. All about me
  21. <p>
  22. in the head
  23. in the head
  24. Class 7 Blog
  25. Planets
  26. in the body
  27. in the head
  28. in the body
  29. Cricket Club
  30. <img>
  31. Cricket Club
  32. <html>
  33. in the body
  34. My Hobbies
  35. True
  36. True
  37. <h1>
  38. <a>
  39. Easy snacks
  40. on the browser tab

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