← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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