← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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