← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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