← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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